Package org.gridforum.jgss
Class ExtendedGSSManager
- java.lang.Object
-
- org.ietf.jgss.GSSManager
-
- org.gridforum.jgss.ExtendedGSSManager
-
- Direct Known Subclasses:
GlobusGSSManagerImpl
public abstract class ExtendedGSSManager extends org.ietf.jgss.GSSManager
Defines Java API for credential import extension as defined in the GSS-API Extensions document. Some of the functions might not specify all the parameters as in the document.
Notes:- Protection key is currently not supported.
-
-
Field Summary
Fields Modifier and Type Field Description private static ExtendedGSSManager
gssManager
-
Constructor Summary
Constructors Modifier Constructor Description protected
ExtendedGSSManager()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract org.ietf.jgss.GSSCredential
createCredential(byte[] buff, int option, int lifetime, org.ietf.jgss.Oid mech, int usage)
A factory method for creating a previously exported credential.static org.ietf.jgss.GSSManager
getInstance()
-
-
-
Field Detail
-
gssManager
private static ExtendedGSSManager gssManager
-
-
Method Detail
-
createCredential
public abstract org.ietf.jgss.GSSCredential createCredential(byte[] buff, int option, int lifetime, org.ietf.jgss.Oid mech, int usage) throws org.ietf.jgss.GSSException
A factory method for creating a previously exported credential.- 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
- The number of seconds that credentials should remain valid. Use GSSCredential.INDEFINITE_LIFETIME to request that the credentials have the maximum permitted lifetime. Use GSSCredential.DEFAULT_LIFETIME to request default credential lifetime.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
-
getInstance
public static org.ietf.jgss.GSSManager getInstance()
-
-