public class GSSUtil extends Object
Modifier and Type | Method | Description |
---|---|---|
static Subject |
createSubject |
Use this method to convert a GSSName and GSSCredential into a Subject. |
public static Subject createSubject(GSSName principals, GSSCredential credentials)
principals
- a GSSName containing one or more mechanism specific representations of the same entity. These mechanism specific representations will be populated in the returned Subject's principal set.credentials
- a GSSCredential containing one or more mechanism specific credentials for the same entity. These mechanism specific credentials will be populated in the returned Subject's private credential set. Passing in a value of null will imply that the private credential set should be left empty.
© 1993, 2023, 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/21/docs/api/jdk.security.jgss/com/sun/security/jgss/GSSUtil.html