Class AuthnErrorDetailSpec.Builder
java.lang.Object
com.pingidentity.sdk.api.authn.spec.AuthnErrorDetailSpec.Builder
- Enclosing class:
- AuthnErrorDetailSpec
A fluent builder for
AuthnErrorDetailSpec specs.- Since:
- 9.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the spec.Set the error code.Set the developer-facing error message.parentCode(String parentCode) Set the parent error code.Set the JSON target field.userMessageKey(String messageKey) Set the user-facing error message key.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Build the spec. -
code
Set the error code. -
message
Set the developer-facing error message. -
userMessageKey
Set the user-facing error message key. A message key should be provided for any error likely to be displayed to the end user, with a corresponding error message specified in authn-api-messages.properties. -
target
Set the JSON target field. -
parentCode
Set the parent error code.
-