Interface ExtendedGSSCredential

All Superinterfaces:
Cloneable, GSSCredential
public interface ExtendedGSSCredential
extends GSSCredential

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

Since:
1.8

Fields

Fields declared in interface org.ietf.jgss.GSSCredential

ACCEPT_ONLY, DEFAULT_LIFETIME, INDEFINITE_LIFETIME, INITIATE_AND_ACCEPT, INITIATE_ONLY

Methods

Modifier and Type Method Description
GSSCredential impersonate​(GSSName name)

Impersonates a principal.

Methods declared in interface org.ietf.jgss.GSSCredential

add, dispose, equals, getMechs, getName, getName, getRemainingAcceptLifetime, getRemainingInitLifetime, getRemainingLifetime, getUsage, getUsage, hashCode

Methods

impersonate

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 - 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

© 1993, 2020, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/11/docs/api/jdk.security.jgss/com/sun/security/jgss/ExtendedGSSCredential.html