Class Authenticator.Success
java.lang.Object
com.sun.net.httpserver.Authenticator.Result
com.sun.net.httpserver.Authenticator.Success
- Enclosing class:
Authenticator
Indicates an authentication has succeeded and the
authenticated user principal can be acquired by calling
getPrincipal()
.- Since:
- 1.6
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the authenticated userPrincipal
.
-
Constructor Details
-
Success
Creates aSuccess
instance with givenPrincipal
.- Parameters:
p
- the authenticated user you wish to set asPrincipal
-
-
Method Details
-
getPrincipal
Returns the authenticated userPrincipal
.- Returns:
- the
Principal
instance associated with the authenticated user
-