001    package org.omg.Security;
002    
003    
004    /**
005    * org/omg/Security/SecurityContextType.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    // Type of SecurityContext
013    public class SecurityContextType implements org.omg.CORBA.portable.IDLEntity
014    {
015      private        int __value;
016      private static int __size = 2;
017      private static org.omg.Security.SecurityContextType[] __array = new org.omg.Security.SecurityContextType [__size];
018    
019      public static final int _SecClientSecurityContext = 0;
020      public static final org.omg.Security.SecurityContextType SecClientSecurityContext = new org.omg.Security.SecurityContextType(_SecClientSecurityContext);
021      public static final int _SecServerSecurityContext = 1;
022      public static final org.omg.Security.SecurityContextType SecServerSecurityContext = new org.omg.Security.SecurityContextType(_SecServerSecurityContext);
023    
024      public int value ()
025      {
026        return __value;
027      }
028    
029      public static org.omg.Security.SecurityContextType from_int (int value)
030      {
031        if (value >= 0 && value < __size)
032          return __array[value];
033        else
034          throw new org.omg.CORBA.BAD_PARAM ();
035      }
036    
037      protected SecurityContextType (int value)
038      {
039        __value = value;
040        __array[__value] = this;
041      }
042    } // class SecurityContextType