@Exported public 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
Copyright © 2000, 2025, Oracle and/or its affiliates. All rights reserved.