001 package org.omg.Security;
002 /**
003 * Generated from IDL enum "AuthenticationStatus".
004 *
005 * @author JacORB IDL compiler V 2.3.0 (JBoss patch 6), 06-Jun-2007
006 * @version generated at Sep 6, 2011 5:12:29 AM
007 */
008
009 public final class AuthenticationStatus
010 implements org.omg.CORBA.portable.IDLEntity
011 {
012 private int value = -1;
013 public static final int _SecAuthSuccess = 0;
014 public static final AuthenticationStatus SecAuthSuccess = new AuthenticationStatus(_SecAuthSuccess);
015 public static final int _SecAuthFailure = 1;
016 public static final AuthenticationStatus SecAuthFailure = new AuthenticationStatus(_SecAuthFailure);
017 public static final int _SecAuthContinue = 2;
018 public static final AuthenticationStatus SecAuthContinue = new AuthenticationStatus(_SecAuthContinue);
019 public static final int _SecAuthExpired = 3;
020 public static final AuthenticationStatus SecAuthExpired = new AuthenticationStatus(_SecAuthExpired);
021 public int value()
022 {
023 return value;
024 }
025 public static AuthenticationStatus from_int(int value)
026 {
027 switch (value) {
028 case _SecAuthSuccess: return SecAuthSuccess;
029 case _SecAuthFailure: return SecAuthFailure;
030 case _SecAuthContinue: return SecAuthContinue;
031 case _SecAuthExpired: return SecAuthExpired;
032 default: throw new org.omg.CORBA.BAD_PARAM();
033 }
034 }
035 public String toString()
036 {
037 switch (value) {
038 case _SecAuthSuccess: return "SecAuthSuccess";
039 case _SecAuthFailure: return "SecAuthFailure";
040 case _SecAuthContinue: return "SecAuthContinue";
041 case _SecAuthExpired: return "SecAuthExpired";
042 default: throw new org.omg.CORBA.BAD_PARAM();
043 }
044 }
045 protected AuthenticationStatus(int i)
046 {
047 value = i;
048 }
049 java.lang.Object readResolve()
050 throws java.io.ObjectStreamException
051 {
052 return from_int(value());
053 }
054 }