Package org.globus.gsi.gssapi
Class GlobusGSSManagerImpl
java.lang.Object
org.ietf.jgss.GSSManager
org.gridforum.jgss.ExtendedGSSManager
org.globus.gsi.gssapi.GlobusGSSManagerImpl
An implementation of
GlobusGSSManager
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate GlobusGSSCredentialImpl
private static org.apache.commons.logging.Log
(package private) static final Oid[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addProviderAtEnd
(Provider p, Oid mech) Currently not implemented.void
addProviderAtFront
(Provider p, Oid mech) Currently not implemented.static void
checkMechanism
(Oid mech) Checks if the specified mechanism matches the mechanism supported by this implementation.createContext
(byte[] interProcessToken) Currently not implemented.createContext
(GSSCredential cred) createContext
(GSSName peer, Oid mech, GSSCredential cred, int lifetime) createCredential
(byte[] buff, int option, int lifetime, Oid mech, int usage) Imports a credential.createCredential
(int usage) Acquires GSI GSS credentials.createCredential
(GSSName name, int lifetime, Oid[] mechs, int usage) Acquires GSI GSS credentials.createCredential
(GSSName name, int lifetime, Oid mech, int usage) Acquires GSI GSS credentials.createName
(byte[] name, Oid nameType) Currently not implemented.createName
(byte[] name, Oid nameType, Oid mech) Currently not implemented.createName
(String nameStr, Oid nameType) createName
(String nameStr, Oid nameType, Oid mech) Currently not implemented.private GSSCredential
getDefaultCredential
(X509Credential cred, int usage) Oid[]
getMechs()
Oid[]
getMechsForName
(Oid nameType) Currently not implemented.Oid[]
getNamesForMech
(Oid mech) Currently not implemented.Methods inherited from class org.gridforum.jgss.ExtendedGSSManager
getInstance
-
Field Details
-
logger
private static org.apache.commons.logging.Log logger -
MECHS
-
defaultCred
-
-
Constructor Details
-
GlobusGSSManagerImpl
public GlobusGSSManagerImpl()
-
-
Method Details
-
createCredential
Acquires GSI GSS credentials.- Specified by:
createCredential
in classGSSManager
- Throws:
GSSException
- See Also:
-
createCredential
public GSSCredential createCredential(GSSName name, int lifetime, Oid mech, int usage) throws GSSException Acquires GSI GSS credentials. First, it tries to find the credentials in the private credential set of the current JAAS Subject. If the Subject is not set or credentials are not found in the Subject, it tries to get a default user credential (usually an user proxy file)- Specified by:
createCredential
in classGSSManager
- Parameters:
lifetime
- Only lifetime set toGSSCredential.DEFAULT_LIFETIME
is allowed.- Throws:
GSSException
- See Also:
-
getDefaultCredential
- Throws:
GSSException
-
createCredential
public GSSCredential createCredential(GSSName name, int lifetime, Oid[] mechs, int usage) throws GSSException Acquires GSI GSS credentials.- Specified by:
createCredential
in classGSSManager
- Throws:
GSSException
- See Also:
-
createCredential
public GSSCredential createCredential(byte[] buff, int option, int lifetime, Oid mech, int usage) throws GSSException Imports a credential.- Specified by:
createCredential
in classExtendedGSSManager
- Parameters:
buff
- The token emitted from theExtendedGSSCredential.export
method.option
- The import type. The import type must be the same as the option used to export the buffer.lifetime
- Only lifetime set toGSSCredential.DEFAULT_LIFETIME
is allowed.mech
- The desired mechanism for the imported credential, may be null to indicate system default.usage
- The intended usage for this credential object. The value of this parameter must be one of: GSSCredential.INITIATE_AND_ACCEPT, GSSCredential.ACCEPT_ONLY, and GSSCredential.INITIATE_ONLY.- Throws:
GSSException
- containing the following major error codes:GSSException.BAD_MECH, GSSException.DEFECTIVE_TOKEN, GSSException.NO_CRED, GSSException.CREDENTIAL_EXPIRED, GSSException.FAILURE
-
createContext
public GSSContext createContext(GSSName peer, Oid mech, GSSCredential cred, int lifetime) throws GSSException - Specified by:
createContext
in classGSSManager
- Throws:
GSSException
-
createContext
- Specified by:
createContext
in classGSSManager
- Throws:
GSSException
-
getMechs
- Specified by:
getMechs
in classGSSManager
-
createName
- Specified by:
createName
in classGSSManager
- Throws:
GSSException
-
checkMechanism
Checks if the specified mechanism matches the mechanism supported by this implementation.- Parameters:
mech
- mechanism to check- Throws:
GSSException
- if mechanism not supported.
-
createContext
Currently not implemented.- Specified by:
createContext
in classGSSManager
- Throws:
GSSException
-
getNamesForMech
Currently not implemented.- Specified by:
getNamesForMech
in classGSSManager
- Throws:
GSSException
-
getMechsForName
Currently not implemented.- Specified by:
getMechsForName
in classGSSManager
-
createName
Currently not implemented.- Specified by:
createName
in classGSSManager
- Throws:
GSSException
-
createName
Currently not implemented.- Specified by:
createName
in classGSSManager
- Throws:
GSSException
-
createName
Currently not implemented.- Specified by:
createName
in classGSSManager
- Throws:
GSSException
-
addProviderAtFront
Currently not implemented.- Specified by:
addProviderAtFront
in classGSSManager
- Throws:
GSSException
-
addProviderAtEnd
Currently not implemented.- Specified by:
addProviderAtEnd
in classGSSManager
- Throws:
GSSException
-