Package org.globus.gsi.gssapi
Class GlobusGSSManagerImpl
- java.lang.Object
-
- org.ietf.jgss.GSSManager
-
- org.gridforum.jgss.ExtendedGSSManager
-
- org.globus.gsi.gssapi.GlobusGSSManagerImpl
-
public class GlobusGSSManagerImpl extends ExtendedGSSManager
An implementation ofGlobusGSSManager
.
-
-
Field Summary
Fields Modifier and Type Field Description private GlobusGSSCredentialImpl
defaultCred
private static org.apache.commons.logging.Log
logger
(package private) static org.ietf.jgss.Oid[]
MECHS
-
Constructor Summary
Constructors Constructor Description GlobusGSSManagerImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProviderAtEnd(java.security.Provider p, org.ietf.jgss.Oid mech)
Currently not implemented.void
addProviderAtFront(java.security.Provider p, org.ietf.jgss.Oid mech)
Currently not implemented.static void
checkMechanism(org.ietf.jgss.Oid mech)
Checks if the specified mechanism matches the mechanism supported by this implementation.org.ietf.jgss.GSSContext
createContext(byte[] interProcessToken)
Currently not implemented.org.ietf.jgss.GSSContext
createContext(org.ietf.jgss.GSSCredential cred)
org.ietf.jgss.GSSContext
createContext(org.ietf.jgss.GSSName peer, org.ietf.jgss.Oid mech, org.ietf.jgss.GSSCredential cred, int lifetime)
org.ietf.jgss.GSSCredential
createCredential(byte[] buff, int option, int lifetime, org.ietf.jgss.Oid mech, int usage)
Imports a credential.org.ietf.jgss.GSSCredential
createCredential(int usage)
Acquires GSI GSS credentials.org.ietf.jgss.GSSCredential
createCredential(org.ietf.jgss.GSSName name, int lifetime, org.ietf.jgss.Oid[] mechs, int usage)
Acquires GSI GSS credentials.org.ietf.jgss.GSSCredential
createCredential(org.ietf.jgss.GSSName name, int lifetime, org.ietf.jgss.Oid mech, int usage)
Acquires GSI GSS credentials.org.ietf.jgss.GSSName
createName(byte[] name, org.ietf.jgss.Oid nameType)
Currently not implemented.org.ietf.jgss.GSSName
createName(byte[] name, org.ietf.jgss.Oid nameType, org.ietf.jgss.Oid mech)
Currently not implemented.org.ietf.jgss.GSSName
createName(java.lang.String nameStr, org.ietf.jgss.Oid nameType)
org.ietf.jgss.GSSName
createName(java.lang.String nameStr, org.ietf.jgss.Oid nameType, org.ietf.jgss.Oid mech)
Currently not implemented.private org.ietf.jgss.GSSCredential
getDefaultCredential(X509Credential cred, int usage)
org.ietf.jgss.Oid[]
getMechs()
org.ietf.jgss.Oid[]
getMechsForName(org.ietf.jgss.Oid nameType)
Currently not implemented.org.ietf.jgss.Oid[]
getNamesForMech(org.ietf.jgss.Oid mech)
Currently not implemented.-
Methods inherited from class org.gridforum.jgss.ExtendedGSSManager
getInstance
-
-
-
-
Field Detail
-
logger
private static org.apache.commons.logging.Log logger
-
MECHS
static final org.ietf.jgss.Oid[] MECHS
-
defaultCred
private GlobusGSSCredentialImpl defaultCred
-
-
Method Detail
-
createCredential
public org.ietf.jgss.GSSCredential createCredential(int usage) throws org.ietf.jgss.GSSException
Acquires GSI GSS credentials.- Specified by:
createCredential
in classorg.ietf.jgss.GSSManager
- Throws:
org.ietf.jgss.GSSException
- See Also:
createCredential(GSSName, int, Oid, int)
-
createCredential
public org.ietf.jgss.GSSCredential createCredential(org.ietf.jgss.GSSName name, int lifetime, org.ietf.jgss.Oid mech, int usage) throws org.ietf.jgss.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 classorg.ietf.jgss.GSSManager
- Parameters:
lifetime
- Only lifetime set toGSSCredential.DEFAULT_LIFETIME
is allowed.- Throws:
org.ietf.jgss.GSSException
- See Also:
X509Credential.getDefaultCredential()
-
getDefaultCredential
private org.ietf.jgss.GSSCredential getDefaultCredential(X509Credential cred, int usage) throws org.ietf.jgss.GSSException
- Throws:
org.ietf.jgss.GSSException
-
createCredential
public org.ietf.jgss.GSSCredential createCredential(org.ietf.jgss.GSSName name, int lifetime, org.ietf.jgss.Oid[] mechs, int usage) throws org.ietf.jgss.GSSException
Acquires GSI GSS credentials.- Specified by:
createCredential
in classorg.ietf.jgss.GSSManager
- Throws:
org.ietf.jgss.GSSException
- See Also:
createCredential(GSSName, int, Oid, int)
-
createCredential
public org.ietf.jgss.GSSCredential createCredential(byte[] buff, int option, int lifetime, org.ietf.jgss.Oid mech, int usage) throws org.ietf.jgss.GSSException
Imports a credential.- Specified by:
createCredential
in classExtendedGSSManager
- Parameters:
lifetime
- Only lifetime set toGSSCredential.DEFAULT_LIFETIME
is allowed.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.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:
org.ietf.jgss.GSSException
- containing the following major error codes:GSSException.BAD_MECH, GSSException.DEFECTIVE_TOKEN, GSSException.NO_CRED, GSSException.CREDENTIAL_EXPIRED, GSSException.FAILURE
-
createContext
public org.ietf.jgss.GSSContext createContext(org.ietf.jgss.GSSName peer, org.ietf.jgss.Oid mech, org.ietf.jgss.GSSCredential cred, int lifetime) throws org.ietf.jgss.GSSException
- Specified by:
createContext
in classorg.ietf.jgss.GSSManager
- Throws:
org.ietf.jgss.GSSException
-
createContext
public org.ietf.jgss.GSSContext createContext(org.ietf.jgss.GSSCredential cred) throws org.ietf.jgss.GSSException
- Specified by:
createContext
in classorg.ietf.jgss.GSSManager
- Throws:
org.ietf.jgss.GSSException
-
getMechs
public org.ietf.jgss.Oid[] getMechs()
- Specified by:
getMechs
in classorg.ietf.jgss.GSSManager
-
createName
public org.ietf.jgss.GSSName createName(java.lang.String nameStr, org.ietf.jgss.Oid nameType) throws org.ietf.jgss.GSSException
- Specified by:
createName
in classorg.ietf.jgss.GSSManager
- Throws:
org.ietf.jgss.GSSException
-
checkMechanism
public static void checkMechanism(org.ietf.jgss.Oid mech) throws org.ietf.jgss.GSSException
Checks if the specified mechanism matches the mechanism supported by this implementation.- Parameters:
mech
- mechanism to check- Throws:
org.ietf.jgss.GSSException
- if mechanism not supported.
-
createContext
public org.ietf.jgss.GSSContext createContext(byte[] interProcessToken) throws org.ietf.jgss.GSSException
Currently not implemented.- Specified by:
createContext
in classorg.ietf.jgss.GSSManager
- Throws:
org.ietf.jgss.GSSException
-
getNamesForMech
public org.ietf.jgss.Oid[] getNamesForMech(org.ietf.jgss.Oid mech) throws org.ietf.jgss.GSSException
Currently not implemented.- Specified by:
getNamesForMech
in classorg.ietf.jgss.GSSManager
- Throws:
org.ietf.jgss.GSSException
-
getMechsForName
public org.ietf.jgss.Oid[] getMechsForName(org.ietf.jgss.Oid nameType)
Currently not implemented.- Specified by:
getMechsForName
in classorg.ietf.jgss.GSSManager
-
createName
public org.ietf.jgss.GSSName createName(java.lang.String nameStr, org.ietf.jgss.Oid nameType, org.ietf.jgss.Oid mech) throws org.ietf.jgss.GSSException
Currently not implemented.- Specified by:
createName
in classorg.ietf.jgss.GSSManager
- Throws:
org.ietf.jgss.GSSException
-
createName
public org.ietf.jgss.GSSName createName(byte[] name, org.ietf.jgss.Oid nameType) throws org.ietf.jgss.GSSException
Currently not implemented.- Specified by:
createName
in classorg.ietf.jgss.GSSManager
- Throws:
org.ietf.jgss.GSSException
-
createName
public org.ietf.jgss.GSSName createName(byte[] name, org.ietf.jgss.Oid nameType, org.ietf.jgss.Oid mech) throws org.ietf.jgss.GSSException
Currently not implemented.- Specified by:
createName
in classorg.ietf.jgss.GSSManager
- Throws:
org.ietf.jgss.GSSException
-
addProviderAtFront
public void addProviderAtFront(java.security.Provider p, org.ietf.jgss.Oid mech) throws org.ietf.jgss.GSSException
Currently not implemented.- Specified by:
addProviderAtFront
in classorg.ietf.jgss.GSSManager
- Throws:
org.ietf.jgss.GSSException
-
addProviderAtEnd
public void addProviderAtEnd(java.security.Provider p, org.ietf.jgss.Oid mech) throws org.ietf.jgss.GSSException
Currently not implemented.- Specified by:
addProviderAtEnd
in classorg.ietf.jgss.GSSManager
- Throws:
org.ietf.jgss.GSSException
-
-