001    package org.omg.Security;
002    
003    
004    /**
005    * org/omg/Security/SecurityFeatureHelper.java .
006    * Generated by the IDL-to-Java compiler (portable), version "3.2"
007    * from /builddir/build/BUILD/geronimo-specs-1.6/geronimo-spec-corba/src/main/idl/Security.idl
008    * Saturday, September 22, 2012 10:56:39 AM CEST
009    */
010    
011    
012    // Security features available on credentials.
013    abstract public class SecurityFeatureHelper
014    {
015      private static String  _id = "IDL:omg.org/Security/SecurityFeature:1.0";
016    
017      public static void insert (org.omg.CORBA.Any a, org.omg.Security.SecurityFeature that)
018      {
019        org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
020        a.type (type ());
021        write (out, that);
022        a.read_value (out.create_input_stream (), type ());
023      }
024    
025      public static org.omg.Security.SecurityFeature extract (org.omg.CORBA.Any a)
026      {
027        return read (a.create_input_stream ());
028      }
029    
030      private static org.omg.CORBA.TypeCode __typeCode = null;
031      synchronized public static org.omg.CORBA.TypeCode type ()
032      {
033        if (__typeCode == null)
034        {
035          __typeCode = org.omg.CORBA.ORB.init ().create_enum_tc (org.omg.Security.SecurityFeatureHelper.id (), "SecurityFeature", new String[] { "SecNoDelegation", "SecSimpleDelegation", "SecCompositeDelegation", "SecNoProtection", "SecIntegrity", "SecConfidentiality", "SecIntegrityAndConfidentiality", "SecDetectReplay", "SecDetectMisordering", "SecEstablishTrustInTarget", "SecEstablishTrustInClient"} );
036        }
037        return __typeCode;
038      }
039    
040      public static String id ()
041      {
042        return _id;
043      }
044    
045      public static org.omg.Security.SecurityFeature read (org.omg.CORBA.portable.InputStream istream)
046      {
047        return org.omg.Security.SecurityFeature.from_int (istream.read_long ());
048      }
049    
050      public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.Security.SecurityFeature value)
051      {
052        ostream.write_long (value.value ());
053      }
054    
055    }