Class AuthnError.Builder
java.lang.Object
com.pingidentity.sdk.api.authn.model.AuthnError.Builder
- Enclosing class:
- AuthnError
A fluent builder for
AuthnError instances.- Since:
- 9.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create the authn error.Set the error code.detail(AuthnErrorDetail detail) Add an additional error detail object.httpStatus(int httpStatus) Set the status code.Set the developer-facing error message.userMessage(String userMessage) Directly set the localized user-facing error message.userMessageKey(String messageKey) Set the user-facing error message key.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Create the authn error. -
httpStatus
Set the status code. -
code
Set the error code. -
message
Set the developer-facing error message. -
userMessageKey
Set the user-facing error message key. In the JSON serialization this key will automatically be converted to a localized string if a corresponding message is defined in the authn-api-messages or the pingfederate-messages properties file for the user's locale. -
userMessage
Directly set the localized user-facing error message. -
detail
Add an additional error detail object.
-