public static class AuthenticateClientResult.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AuthenticateClientResult |
build() |
AuthenticateClientResult.Builder |
copy(AuthenticateClientResult model) |
AuthenticateClientResult.Builder |
errorMessage(String errorMessage)
If the authentication fails for the original caller (not failing authentication of the
calling service, in which case we return 401), we return a 200, but with null principal
and an error message
|
AuthenticateClientResult.Builder |
principal(Principal principal)
The original caller’s resolved principal object if the authentication succeeds, null
otherwise.
|
public AuthenticateClientResult.Builder principal(Principal principal)
The original caller’s resolved principal object if the authentication succeeds, null otherwise.
principal
- the value to setpublic AuthenticateClientResult.Builder errorMessage(String errorMessage)
If the authentication fails for the original caller (not failing authentication of the calling service, in which case we return 401), we return a 200, but with null principal and an error message
errorMessage
- the value to setpublic AuthenticateClientResult build()
public AuthenticateClientResult.Builder copy(AuthenticateClientResult model)
Copyright © 2016–2024. All rights reserved.