public abstract class ExtendedGSSManager extends GSSManager
Modifier | Constructor and Description |
---|---|
protected |
ExtendedGSSManager() |
Modifier and Type | Method and Description |
---|---|
abstract GSSCredential |
createCredential(byte[] buff,
int option,
int lifetime,
Oid mech,
int usage)
A factory method for creating a previously exported credential.
|
static GSSManager |
getInstance() |
addProviderAtEnd, addProviderAtFront, createContext, createContext, createContext, createCredential, createCredential, createCredential, createName, createName, createName, createName, getMechs, getMechsForName, getNamesForMech
public abstract GSSCredential createCredential(byte[] buff, int option, int lifetime, Oid mech, int usage) throws GSSException
buff
- The token emitted from the ExtendedGSSCredential.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.GSSException
- containing the following major error codes: GSSException.BAD_MECH,
GSSException.DEFECTIVE_TOKEN, GSSException.NO_CRED, GSSException.CREDENTIAL_EXPIRED,
GSSException.FAILURE
public static GSSManager getInstance()
Copyright © 2016. All rights reserved.