com.ibm.security.jgss
Class GSSUtil
- java.lang.Object
com.ibm.security.jgss.GSSUtil
- public class GSSUtil
- extends java.lang.Object
Field Summary
Modifier and Type | Field and Description |
---|---|
|
CALLER_ACCEPT
|
|
CALLER_HTTP_NEGOTIATE
|
|
CALLER_INITIATE
|
|
CALLER_SSL_CLIENT
|
|
CALLER_SSL_SERVER
|
|
CALLER_UNKNOWN
|
|
GSS_KRB5_MECH_OID
|
|
GSS_KRB5_MECH_OID2
|
|
GSS_SPNEGO_MECH_OID
|
Constructor Summary
Constructor and Description |
---|
GSSUtil()
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
createOid(java.lang.String oidStr)
|
|
is2478Behavior()
Determines the SPNEGO has RFC 2478 behavior
by default it is set to false.
|
|
isKerberosMech(Oid oid)
|
|
isSpNegoMech(Oid oid)
|
|
login(int caller,Oid mech)
Authenticate using the login module from the specified
configuration entry.
|
|
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
- public static final Oid GSS_KRB5_MECH_OID
GSS_KRB5_MECH_OID2
- public static final Oid GSS_KRB5_MECH_OID2
GSS_SPNEGO_MECH_OID
- public static final Oid GSS_SPNEGO_MECH_OID
CALLER_UNKNOWN
- public static final int CALLER_UNKNOWN
See Also:
CALLER_INITIATE
- public static final int CALLER_INITIATE
See Also:
CALLER_ACCEPT
- public static final int CALLER_ACCEPT
See Also:
CALLER_SSL_CLIENT
- public static final int CALLER_SSL_CLIENT
See Also:
CALLER_SSL_SERVER
- public static final int CALLER_SSL_SERVER
See Also:
CALLER_HTTP_NEGOTIATE
- public static final int CALLER_HTTP_NEGOTIATE
See Also:
Constructor Detail
GSSUtil
- public GSSUtil()
Method Detail
createOid
- public static Oid createOid(java.lang.String oidStr)
isSpNegoMech
- public static boolean isSpNegoMech( Oid oid)
isKerberosMech
- public static boolean isKerberosMech( Oid oid)
is2478Behavior
- 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
- public static javax.security.auth.Subject login( int caller,
- Oid mech)
- 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
- public static boolean useSubjectCredsOnly( )