001 package org.omg.Security;
002
003
004 /**
005 * org/omg/Security/InvocationCredentialsType.java .
006 * Generated by the IDL-to-Java compiler (portable), version "3.2"
007 * from /home/iurt/rpm/BUILD/geronimo-spec-corba/src/main/idl/Security.idl
008 * Saturday, November 26, 2011 9:53:35 PM UTC
009 */
010
011
012 // Credential types
013 public class InvocationCredentialsType implements org.omg.CORBA.portable.IDLEntity
014 {
015 private int __value;
016 private static int __size = 3;
017 private static org.omg.Security.InvocationCredentialsType[] __array = new org.omg.Security.InvocationCredentialsType [__size];
018
019 public static final int _SecOwnCredentials = 0;
020 public static final org.omg.Security.InvocationCredentialsType SecOwnCredentials = new org.omg.Security.InvocationCredentialsType(_SecOwnCredentials);
021 public static final int _SecReceivedCredentials = 1;
022 public static final org.omg.Security.InvocationCredentialsType SecReceivedCredentials = new org.omg.Security.InvocationCredentialsType(_SecReceivedCredentials);
023 public static final int _SecTargetCredentials = 2;
024 public static final org.omg.Security.InvocationCredentialsType SecTargetCredentials = new org.omg.Security.InvocationCredentialsType(_SecTargetCredentials);
025
026 public int value ()
027 {
028 return __value;
029 }
030
031 public static org.omg.Security.InvocationCredentialsType from_int (int value)
032 {
033 if (value >= 0 && value < __size)
034 return __array[value];
035 else
036 throw new org.omg.CORBA.BAD_PARAM ();
037 }
038
039 protected InvocationCredentialsType (int value)
040 {
041 __value = value;
042 __array[__value] = this;
043 }
044 } // class InvocationCredentialsType