001    package org.omg.Security;
002    
003    
004    /**
005    * org/omg/Security/AuthenticationStatus.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    * Monday, June 18, 2012 10:36:15 AM CEST
009    */
010    
011    
012    // Authentication return status
013    public class AuthenticationStatus implements org.omg.CORBA.portable.IDLEntity
014    {
015      private        int __value;
016      private static int __size = 4;
017      private static org.omg.Security.AuthenticationStatus[] __array = new org.omg.Security.AuthenticationStatus [__size];
018    
019      public static final int _SecAuthSuccess = 0;
020      public static final org.omg.Security.AuthenticationStatus SecAuthSuccess = new org.omg.Security.AuthenticationStatus(_SecAuthSuccess);
021      public static final int _SecAuthFailure = 1;
022      public static final org.omg.Security.AuthenticationStatus SecAuthFailure = new org.omg.Security.AuthenticationStatus(_SecAuthFailure);
023      public static final int _SecAuthContinue = 2;
024      public static final org.omg.Security.AuthenticationStatus SecAuthContinue = new org.omg.Security.AuthenticationStatus(_SecAuthContinue);
025      public static final int _SecAuthExpired = 3;
026      public static final org.omg.Security.AuthenticationStatus SecAuthExpired = new org.omg.Security.AuthenticationStatus(_SecAuthExpired);
027    
028      public int value ()
029      {
030        return __value;
031      }
032    
033      public static org.omg.Security.AuthenticationStatus from_int (int value)
034      {
035        if (value >= 0 && value < __size)
036          return __array[value];
037        else
038          throw new org.omg.CORBA.BAD_PARAM ();
039      }
040    
041      protected AuthenticationStatus (int value)
042      {
043        __value = value;
044        __array[__value] = this;
045      }
046    } // class AuthenticationStatus