Class AuthnErrorDetailSpec
java.lang.Object
com.pingidentity.sdk.api.authn.spec.AuthnErrorDetailSpec
A class which acts as a template for
AuthnErrorDetail instances.
This allows common definitions for authentication error details to be shared across plugins. Once created, objects of this class
are immutable. Objects of this class are not normally returned in API responses. Instead, you create an
AuthnErrorDetail instance using the makeInstance()
or makeInstanceBuilder() methods.- Since:
- 9.3
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAuthnErrorDetailSpec(String parentCode, String code, String message) Create a spec with the specified parameters. -
Method Summary
Modifier and TypeMethodDescriptiongetCode()Get the error code.Get the developer-facing error message.Get the parent error code.If the error applies to a specific field in an incoming API request, this identifies the name of the JSON field.Get the user-facing error message key.Get an instance ofAuthnErrorDetailbased on the parameters in this spec.Get anAuthnErrorDetailbuilder initialized with the parameters from this spec.
-
Constructor Details
-
AuthnErrorDetailSpec
Create a spec with the specified parameters.- Parameters:
parentCode- The parent error code this detail spec belongs to.code- The error code.message- The error message.
-
-
Method Details
-
makeInstanceBuilder
Get anAuthnErrorDetailbuilder initialized with the parameters from this spec. -
makeInstance
Get an instance ofAuthnErrorDetailbased on the parameters in this spec. -
getParentCode
Get the parent error code. This is the top-level error code that this detail spec is associated with. -
getCode
Get the error code. -
getMessage
Get the developer-facing error message. -
getUserMessageKey
Get 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. -
getTarget
If the error applies to a specific field in an incoming API request, this identifies the name of the JSON field. If the field is nested within the incoming request, JSON pointer syntax is used to identify the field. The leading "/" is omitted when JSON pointer syntax is used.
-