Cloneable, GSSCredentialpublic interface ExtendedGSSCredential extends GSSCredential
org.ietf.jgss.GSSCredential.ACCEPT_ONLY, DEFAULT_LIFETIME, INDEFINITE_LIFETIME, INITIATE_AND_ACCEPT, INITIATE_ONLY| Modifier and Type | Method | Description |
|---|---|---|
GSSCredential |
impersonate(GSSName name) |
Impersonates a principal.
|
add, dispose, equals, getMechs, getName, getName, getRemainingAcceptLifetime, getRemainingInitLifetime, getRemainingLifetime, getUsage, getUsage, hashCodeGSSCredential impersonate(GSSName name) throws GSSException
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.
name - the name of the principal to impersonateGSSException - containing the following
major error codes:
GSSException.NO_CRED
GSSException.FAILURE Submit a bug or feature
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 2000, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Debian+0-9b153-2