|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsun.security.mule.jgss.GSSUtil
public class GSSUtil
The GSSUtilImplementation that knows how to work with the internals of the GSS-API.
| Field Summary | |
|---|---|
static int |
CALLER_ACCEPT
|
static int |
CALLER_HTTP_NEGOTIATE
|
static int |
CALLER_INITIATE
|
static int |
CALLER_SSL_CLIENT
|
static int |
CALLER_SSL_SERVER
|
static int |
CALLER_UNKNOWN
|
static Oid |
GSS_KRB5_MECH_OID
|
static Oid |
GSS_KRB5_MECH_OID2
|
static Oid |
GSS_SPNEGO_MECH_OID
|
static Oid |
NT_GSS_KRB5_PRINCIPAL
|
static Oid |
NT_HOSTBASED_SERVICE2
|
| Constructor Summary | |
|---|---|
GSSUtil()
|
|
| Method Summary | |
|---|---|
static Oid |
createOid(String oidStr)
|
static String |
getMechStr(Oid oid)
|
static Subject |
getSubject(GSSName name,
GSSCredential creds)
Note: The current impl only works with Sun's impl of GSSName and GSSCredential since it depends on package private APIs. |
static boolean |
isKerberosMech(Oid oid)
|
static boolean |
isSpNegoMech(Oid oid)
|
static Subject |
login(int caller,
Oid mech)
Authenticate using the login module from the specified configuration entry. |
static Vector |
searchSubject(GSSNameSpi name,
Oid mech,
boolean initiate,
Class credCls)
Searches the private credentials of current Subject with the specified criteria and returns the matching GSSCredentialSpi object out of Sun's impl of GSSCredential. |
static boolean |
useMSInterop()
Determines the SPNEGO interoperability mode with Microsoft; by default it is set to true. |
static boolean |
useSubjectCredsOnly(int caller)
Determines if the application doesn't mind if the mechanism obtains the required credentials from outside of the current Subject. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Oid GSS_KRB5_MECH_OID
public static final Oid GSS_KRB5_MECH_OID2
public static final Oid GSS_SPNEGO_MECH_OID
public static final Oid NT_GSS_KRB5_PRINCIPAL
public static final Oid NT_HOSTBASED_SERVICE2
public static final int CALLER_UNKNOWN
public static final int CALLER_INITIATE
public static final int CALLER_ACCEPT
public static final int CALLER_SSL_CLIENT
public static final int CALLER_SSL_SERVER
public static final int CALLER_HTTP_NEGOTIATE
| Constructor Detail |
|---|
public GSSUtil()
| Method Detail |
|---|
public static Oid createOid(String oidStr)
public static boolean isSpNegoMech(Oid oid)
public static boolean isKerberosMech(Oid oid)
public static String getMechStr(Oid oid)
public static Subject getSubject(GSSName name,
GSSCredential creds)
public static Subject login(int caller,
Oid mech)
throws LoginException
caller - the caller of JAAS Loginmech - the mech to be used
LoginExceptionpublic static boolean useSubjectCredsOnly(int caller)
public static boolean useMSInterop()
public static Vector searchSubject(GSSNameSpi name,
Oid mech,
boolean initiate,
Class credCls)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||