public static class AuthenticationResult.Builder extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AuthenticationResult |
build()
Builds a new AuthenticationResult.
|
AuthenticationResult.Builder |
setDiagnosticMessage(java.lang.String diagnosticMessage)
Specifies the message that will be only be included in the trace log
for diagnostic purposes.
|
AuthenticationResult.Builder |
setFlowStateParams(java.lang.String flowStateParams)
Specifies the JSON object specifying the state parameters to be preserved
and resubmitted to the authenticator to continue a multi-step
authentication flow.
|
AuthenticationResult.Builder |
setResponseParams(java.lang.String responseParams)
Specifies the JSON object specifying the parameters to return that may be
used to continue the authentication process.
|
public Builder()
public AuthenticationResult.Builder setResponseParams(java.lang.String responseParams)
Since this response is visible to the client in a potentially unauthenticated context, the authenticator should not expose any sensitive user or server information in the response.
responseParams
- The parameters to return.public AuthenticationResult.Builder setFlowStateParams(java.lang.String flowStateParams)
flowStateParams
- The state parameters to be preserved.public AuthenticationResult.Builder setDiagnosticMessage(java.lang.String diagnosticMessage)
diagnosticMessage
- The diagnostic messagepublic AuthenticationResult build()