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(java.security.Provider p, org.ietf.jgss.Oid mech)Currently not implemented.voidaddProviderAtFront(java.security.Provider p, org.ietf.jgss.Oid mech)Currently not implemented.static voidcheckMechanism(org.ietf.jgss.Oid mech)Checks if the specified mechanism matches the mechanism supported by this implementation.org.ietf.jgss.GSSContextcreateContext(byte[] interProcessToken)Currently not implemented.org.ietf.jgss.GSSContextcreateContext(org.ietf.jgss.GSSCredential cred)org.ietf.jgss.GSSContextcreateContext(org.ietf.jgss.GSSName peer, org.ietf.jgss.Oid mech, org.ietf.jgss.GSSCredential cred, int lifetime)org.ietf.jgss.GSSCredentialcreateCredential(byte[] buff, int option, int lifetime, org.ietf.jgss.Oid mech, int usage)Imports a credential.org.ietf.jgss.GSSCredentialcreateCredential(int usage)Acquires GSI GSS credentials.org.ietf.jgss.GSSCredentialcreateCredential(org.ietf.jgss.GSSName name, int lifetime, org.ietf.jgss.Oid[] mechs, int usage)Acquires GSI GSS credentials.org.ietf.jgss.GSSCredentialcreateCredential(org.ietf.jgss.GSSName name, int lifetime, org.ietf.jgss.Oid mech, int usage)Acquires GSI GSS credentials.org.ietf.jgss.GSSNamecreateName(byte[] name, org.ietf.jgss.Oid nameType)Currently not implemented.org.ietf.jgss.GSSNamecreateName(byte[] name, org.ietf.jgss.Oid nameType, org.ietf.jgss.Oid mech)Currently not implemented.org.ietf.jgss.GSSNamecreateName(java.lang.String nameStr, org.ietf.jgss.Oid nameType)org.ietf.jgss.GSSNamecreateName(java.lang.String nameStr, org.ietf.jgss.Oid nameType, org.ietf.jgss.Oid mech)Currently not implemented.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
-
-
-
-
Method Detail
-
createCredential
public org.ietf.jgss.GSSCredential createCredential(int usage) throws org.ietf.jgss.GSSExceptionAcquires GSI GSS credentials.- Specified by:
createCredentialin 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.GSSExceptionAcquires 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 classorg.ietf.jgss.GSSManager- Parameters:
lifetime- Only lifetime set toGSSCredential.DEFAULT_LIFETIMEis allowed.- Throws:
org.ietf.jgss.GSSException- See Also:
X509Credential.getDefaultCredential()
-
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.GSSExceptionAcquires GSI GSS credentials.- Specified by:
createCredentialin 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.GSSExceptionImports 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:
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:
createContextin 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:
createContextin classorg.ietf.jgss.GSSManager- Throws:
org.ietf.jgss.GSSException
-
getMechs
public org.ietf.jgss.Oid[] getMechs()
- Specified by:
getMechsin 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:
createNamein classorg.ietf.jgss.GSSManager- Throws:
org.ietf.jgss.GSSException
-
checkMechanism
public static void checkMechanism(org.ietf.jgss.Oid mech) throws org.ietf.jgss.GSSExceptionChecks 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.GSSExceptionCurrently not implemented.- Specified by:
createContextin 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.GSSExceptionCurrently not implemented.- Specified by:
getNamesForMechin 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:
getMechsForNamein 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.GSSExceptionCurrently not implemented.- Specified by:
createNamein 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.GSSExceptionCurrently not implemented.- Specified by:
createNamein 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.GSSExceptionCurrently not implemented.- Specified by:
createNamein 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.GSSExceptionCurrently not implemented.- Specified by:
addProviderAtFrontin 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.GSSExceptionCurrently not implemented.- Specified by:
addProviderAtEndin classorg.ietf.jgss.GSSManager- Throws:
org.ietf.jgss.GSSException
-
-