com.ibm.security.jgss

Class GSSUtil

  1. java.lang.Object
  2. extended bycom.ibm.security.jgss.GSSUtil

  1. public class GSSUtil
  2. extends java.lang.Object

Field Summary

Modifier and Type Field and Description
  1. static
  2. int
CALLER_ACCEPT
  1. static
  2. int
CALLER_HTTP_NEGOTIATE
  1. static
  2. int
CALLER_INITIATE
  1. static
  2. int
CALLER_SSL_CLIENT
  1. static
  2. int
CALLER_SSL_SERVER
  1. static
  2. int
CALLER_UNKNOWN
  1. static
  2. Oid
GSS_KRB5_MECH_OID
  1. static
  2. Oid
GSS_KRB5_MECH_OID2
  1. static
  2. Oid
GSS_SPNEGO_MECH_OID

Constructor Summary

Constructor and Description
GSSUtil()

Method Summary

Modifier and Type Method and Description
  1. static
  2. Oid
createOid(java.lang.String oidStr)
  1. static
  2. boolean
is2478Behavior()
Determines the SPNEGO has RFC 2478 behavior by default it is set to false.
  1. static
  2. boolean
isKerberosMech(Oid oid)
  1. static
  2. boolean
isSpNegoMech(Oid oid)
  1. static
  2. javax.security.auth.Subject
login(int caller,Oid mech)
Authenticate using the login module from the specified configuration entry.
  1. static
  2. boolean
useSubjectCredsOnly()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

GSS_KRB5_MECH_OID

  1. public static final Oid GSS_KRB5_MECH_OID

GSS_KRB5_MECH_OID2

  1. public static final Oid GSS_KRB5_MECH_OID2

GSS_SPNEGO_MECH_OID

  1. public static final Oid GSS_SPNEGO_MECH_OID

CALLER_UNKNOWN

  1. public static final int CALLER_UNKNOWN
See Also:

CALLER_INITIATE

  1. public static final int CALLER_INITIATE
See Also:

CALLER_ACCEPT

  1. public static final int CALLER_ACCEPT
See Also:

CALLER_SSL_CLIENT

  1. public static final int CALLER_SSL_CLIENT
See Also:

CALLER_SSL_SERVER

  1. public static final int CALLER_SSL_SERVER
See Also:

CALLER_HTTP_NEGOTIATE

  1. public static final int CALLER_HTTP_NEGOTIATE
See Also:

Constructor Detail

GSSUtil

  1. public GSSUtil()

Method Detail

createOid

  1. public static Oid createOid(java.lang.String oidStr)

isSpNegoMech

  1. public static boolean isSpNegoMech( Oid oid)

isKerberosMech

  1. public static boolean isKerberosMech( Oid oid)

is2478Behavior

  1. public static boolean is2478Behavior( )
Determines the SPNEGO has RFC 2478 behavior by default it is set to false. To able it, the application indicates this by explicitly setting the system property com.ibm.security.jgss.spnego2478 to true.

login

  1. public static javax.security.auth.Subject login( int caller,
  2. Oid mech)
  3. throws javax.security.auth.login.LoginException
Authenticate using the login module from the specified configuration entry.
Parameters:
caller - the caller of JAAS Login
mech - the mech to be used
Returns:
the authenticated subject
Throws:
javax.security.auth.login.LoginException

useSubjectCredsOnly

  1. public static boolean useSubjectCredsOnly( )