- All Superinterfaces:
- Cloneable,- GSSCredential
The extended GSSCredential interface for supporting additional
 functionalities not defined by 
org.ietf.jgss.GSSCredential.- Since:
- 1.8
- 
Field SummaryFields declared in interface org.ietf.jgss.GSSCredentialACCEPT_ONLY, DEFAULT_LIFETIME, INDEFINITE_LIFETIME, INITIATE_AND_ACCEPT, INITIATE_ONLY
- 
Method SummaryMethods declared in interface org.ietf.jgss.GSSCredentialadd, dispose, equals, getMechs, getName, getName, getRemainingAcceptLifetime, getRemainingInitLifetime, getRemainingLifetime, getUsage, getUsage, hashCode
- 
Method Details- 
impersonateImpersonates 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_CRED- GSSException.FAILURE
 
 
-