public static class AuthnError.Builder extends Object
AuthnError
instances.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AuthnError |
build()
Create the authn error.
|
AuthnError.Builder |
code(String code)
Set the error code.
|
AuthnError.Builder |
detail(AuthnErrorDetail detail)
Add an additional error detail object.
|
AuthnError.Builder |
httpStatus(int httpStatus)
Set the status code.
|
AuthnError.Builder |
message(String message)
Set the developer-facing error message.
|
AuthnError.Builder |
userMessage(String userMessage)
Directly set the localized user-facing error message.
|
AuthnError.Builder |
userMessageKey(String messageKey)
Set the user-facing error message key.
|
public AuthnError build()
public AuthnError.Builder httpStatus(int httpStatus)
public AuthnError.Builder code(String code)
public AuthnError.Builder message(String message)
public AuthnError.Builder userMessageKey(String messageKey)
public AuthnError.Builder userMessage(String userMessage)
public AuthnError.Builder detail(AuthnErrorDetail detail)
Copyright 2019 Ping Identity Corp. All rights reserved.