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.
-
-
Constructor Summary
Constructors Constructor Description GlobusGSSManagerImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProviderAtEnd(Provider p, Oid mech)Currently not implemented.voidaddProviderAtFront(Provider p, Oid mech)Currently not implemented.static voidcheckMechanism(Oid mech)Checks if the specified mechanism matches the mechanism supported by this implementation.GSSContextcreateContext(byte[] interProcessToken)Currently not implemented.GSSContextcreateContext(GSSCredential cred)GSSContextcreateContext(GSSName peer, Oid mech, GSSCredential cred, int lifetime)GSSCredentialcreateCredential(byte[] buff, int option, int lifetime, Oid mech, int usage)Imports a credential.GSSCredentialcreateCredential(int usage)Acquires GSI GSS credentials.GSSCredentialcreateCredential(GSSName name, int lifetime, Oid[] mechs, int usage)Acquires GSI GSS credentials.GSSCredentialcreateCredential(GSSName name, int lifetime, Oid mech, int usage)Acquires GSI GSS credentials.GSSNamecreateName(byte[] name, Oid nameType)Currently not implemented.GSSNamecreateName(byte[] name, Oid nameType, Oid mech)Currently not implemented.GSSNamecreateName(String nameStr, Oid nameType)GSSNamecreateName(String nameStr, Oid nameType, Oid mech)Currently not implemented.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
-
-
-
-
Method Detail
-
createCredential
public GSSCredential createCredential(int usage) throws GSSException
Acquires GSI GSS credentials.- Specified by:
createCredentialin classGSSManager- Throws:
GSSException- See Also:
createCredential(GSSName, int, Oid, int)
-
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:
createCredentialin classGSSManager- Parameters:
lifetime- Only lifetime set toGSSCredential.DEFAULT_LIFETIMEis allowed.- Throws:
GSSException- See Also:
X509Credential.getDefaultCredential()
-
createCredential
public GSSCredential createCredential(GSSName name, int lifetime, Oid[] mechs, int usage) throws GSSException
Acquires GSI GSS credentials.- Specified by:
createCredentialin classGSSManager- Throws:
GSSException- See Also:
createCredential(GSSName, int, Oid, int)
-
createCredential
public GSSCredential createCredential(byte[] buff, int option, int lifetime, Oid mech, int usage) throws GSSException
Imports a credential.- Specified by:
createCredentialin classExtendedGSSManager- Parameters:
lifetime- Only lifetime set toGSSCredential.DEFAULT_LIFETIMEis allowed.buff- The token emitted from theExtendedGSSCredential.exportmethod.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:
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:
createContextin classGSSManager- Throws:
GSSException
-
createContext
public GSSContext createContext(GSSCredential cred) throws GSSException
- Specified by:
createContextin classGSSManager- Throws:
GSSException
-
getMechs
public Oid[] getMechs()
- Specified by:
getMechsin classGSSManager
-
createName
public GSSName createName(String nameStr, Oid nameType) throws GSSException
- Specified by:
createNamein classGSSManager- Throws:
GSSException
-
checkMechanism
public static void checkMechanism(Oid mech) throws GSSException
Checks if the specified mechanism matches the mechanism supported by this implementation.- Parameters:
mech- mechanism to check- Throws:
GSSException- if mechanism not supported.
-
createContext
public GSSContext createContext(byte[] interProcessToken) throws GSSException
Currently not implemented.- Specified by:
createContextin classGSSManager- Throws:
GSSException
-
getNamesForMech
public Oid[] getNamesForMech(Oid mech) throws GSSException
Currently not implemented.- Specified by:
getNamesForMechin classGSSManager- Throws:
GSSException
-
getMechsForName
public Oid[] getMechsForName(Oid nameType)
Currently not implemented.- Specified by:
getMechsForNamein classGSSManager
-
createName
public GSSName createName(String nameStr, Oid nameType, Oid mech) throws GSSException
Currently not implemented.- Specified by:
createNamein classGSSManager- Throws:
GSSException
-
createName
public GSSName createName(byte[] name, Oid nameType) throws GSSException
Currently not implemented.- Specified by:
createNamein classGSSManager- Throws:
GSSException
-
createName
public GSSName createName(byte[] name, Oid nameType, Oid mech) throws GSSException
Currently not implemented.- Specified by:
createNamein classGSSManager- Throws:
GSSException
-
addProviderAtFront
public void addProviderAtFront(Provider p, Oid mech) throws GSSException
Currently not implemented.- Specified by:
addProviderAtFrontin classGSSManager- Throws:
GSSException
-
addProviderAtEnd
public void addProviderAtEnd(Provider p, Oid mech) throws GSSException
Currently not implemented.- Specified by:
addProviderAtEndin classGSSManager- Throws:
GSSException
-
-