Class AuthnErrorSpec.Builder
java.lang.Object
com.pingidentity.sdk.api.authn.spec.AuthnErrorSpec.Builder
- Enclosing class:
- AuthnErrorSpec
A fluent builder for
AuthnErrorSpec specs.- Since:
- 9.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the spec.Set the error code.httpStatus(int status) Set the HTTP status code.Set the developer-facing error message.userMessageKey(String messageKey) Set the user-facing error message key.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Build the spec. -
httpStatus
Set the HTTP status code. -
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.
-