Class AuthnErrorDetail.Builder
java.lang.Object
com.pingidentity.sdk.api.authn.model.AuthnErrorDetail.Builder
- Enclosing class:
- AuthnErrorDetail
A fluent builder for
AuthnErrorDetail instances.- Since:
- 9.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the instance.Set the error code.Set the developer-facing error message.Set the JSON target field.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
Build the instance. -
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 properties file for the user's locale. -
userMessage
Directly set the localized user-facing error message. -
target
Set the JSON target field.
-