Authenticator
public static class Authenticator.Success extends Authenticator.Result
getPrincipal()
.Constructor | Description |
---|---|
Success |
Creates a Success instance with given Principal . |
Modifier and Type | Method | Description |
---|---|---|
HttpPrincipal |
getPrincipal() |
Returns the authenticated user Principal . |
public Success(HttpPrincipal p)
Success
instance with given Principal
.p
- the authenticated user you wish to set as Principal
public HttpPrincipal getPrincipal()
Principal
.Principal
instance associated with the authenticated user
© 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.httpserver/com/sun/net/httpserver/Authenticator.Success.html