Class AuthnErrorDetailSpec.Builder
- java.lang.Object
-
- com.pingidentity.sdk.api.authn.spec.AuthnErrorDetailSpec.Builder
-
- Enclosing class:
- AuthnErrorDetailSpec
public static class AuthnErrorDetailSpec.Builder extends Object
A fluent builder forAuthnErrorDetailSpecspecs.- Since:
- 9.3
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthnErrorDetailSpecbuild()Build the spec.AuthnErrorDetailSpec.Buildercode(String code)Set the error code.AuthnErrorDetailSpec.Buildermessage(String message)Set the developer-facing error message.AuthnErrorDetailSpec.BuilderparentCode(String parentCode)Set the parent error code.AuthnErrorDetailSpec.Buildertarget(String target)Set the JSON target field.AuthnErrorDetailSpec.BuilderuserMessageKey(String messageKey)Set the user-facing error message key.
-
-
-
Method Detail
-
build
public AuthnErrorDetailSpec build()
Build the spec.
-
code
public AuthnErrorDetailSpec.Builder code(String code)
Set the error code.
-
message
public AuthnErrorDetailSpec.Builder message(String message)
Set the developer-facing error message.
-
userMessageKey
public AuthnErrorDetailSpec.Builder userMessageKey(String messageKey)
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
public AuthnErrorDetailSpec.Builder target(String target)
Set the JSON target field.
-
parentCode
public AuthnErrorDetailSpec.Builder parentCode(String parentCode)
Set the parent error code.
-
-