APIdia Launch Partner
Top Description Fields Methods
com.sun.security.jgss

public Interface ExtendedGSSCredential

extends GSSCredential
Known Direct Implementers
com.sun.security.jgss.ExtendedGSSCredentialImpl
Imports
org.ietf.jgss.*

The extended GSSCredential interface for supporting additional functionalities not defined by org.ietf.jgss.GSSCredential.
Since
1.8

Field Summary

Inherited from org.ietf.jgss.GSSCredential:
ACCEPT_ONLYDEFAULT_LIFETIMEINDEFINITE_LIFETIMEINITIATE_AND_ACCEPTINITIATE_ONLY

Method Summary

Modifier and TypeMethod and Description
public GSSCredential

Returns:

a credential for that principal
impersonate
(GSSName
the name of the principal to impersonate
name
)

Impersonates a principal.

Inherited from org.ietf.jgss.GSSCredential:
adddisposeequalsgetMechsgetNamegetNamegetRemainingAcceptLifetimegetRemainingInitLifetimegetRemainingLifetimegetUsagegetUsagehashCode

Method Detail

impersonateback to summary
public GSSCredential impersonate(GSSName name) throws GSSException

Impersonates a principal. In Kerberos, this can be implemented using the Microsoft S4U2self extension.

A GSSException.NO_CRED will be thrown if the impersonation fails. A GSSException.FAILURE will be thrown if the impersonation method is not available to this credential object.

Parameters
name:GSSName

the name of the principal to impersonate

Returns:GSSCredential

a credential for that principal

Exceptions
GSSException:
containing the following major error codes: GSSException.NO_CRED GSSException.FAILURE