Interface ExtendedGSSCredential
- All Superinterfaces:
Cloneable, GSSCredential
The extended GSSCredential interface for supporting additional
functionalities not defined by
org.ietf.jgss.GSSCredential.- Since:
- 1.8
-
Field Summary
Fields declared in interface GSSCredential
ACCEPT_ONLY, DEFAULT_LIFETIME, INDEFINITE_LIFETIME, INITIATE_AND_ACCEPT, INITIATE_ONLYModifier and TypeFieldDescriptionstatic final intCredential usage flag requesting that it be usable for context acceptance only.static final intA lifetime constant representing the default credential lifetime.static final intA lifetime constant representing indefinite credential lifetime.static final intCredential usage flag requesting that it be usable for both context initiation and acceptance.static final intCredential usage flag requesting that it be usable for context initiation only. -
Method Summary
Methods declared in interface GSSCredential
add, dispose, equals, getMechs, getName, getName, getRemainingAcceptLifetime, getRemainingInitLifetime, getRemainingLifetime, getUsage, getUsage, hashCodeModifier and TypeMethodDescriptionvoidAdds a mechanism specific credential-element to an existing credential.voiddispose()Releases any sensitive information that the GSSCredential object may be containing.booleanTests if this GSSCredential asserts the same entity as the supplied object.Oid[]getMechs()Returns a list of mechanisms supported by this credential.getName()Retrieves the name of the entity that the credential asserts.Retrieves a Mechanism Name of the entity that the credential asserts.intReturns the lifetime in seconds for the credential to remain capable of accepting security contexts using the specified mechanism.intgetRemainingInitLifetime(Oid mech) Returns the lifetime in seconds for the credential to remain capable of initiating security contexts using the specified mechanism.intReturns the remaining lifetime in seconds for a credential.intgetUsage()Returns the credential usage mode.intReturns the credential usage mode for a specific mechanism.inthashCode()Returns a hashcode value for this GSSCredential.
-
Method Details
-
impersonate
Impersonates a principal. In Kerberos, this can be implemented using the Microsoft S4U2self extension.A
GSSException.NO_CREDwill be thrown if the impersonation fails. AGSSException.FAILUREwill be thrown if the impersonation method is not available to this credential object.- Parameters:
name- the name of the principal to impersonate- Returns:
- a credential for that principal
- Throws:
GSSException- containing the following major error codes:GSSException.NO_CREDGSSException.FAILURE
-