Class AuthnErrorDetailSpec
- java.lang.Object
-
- com.pingidentity.sdk.api.authn.spec.AuthnErrorDetailSpec
-
public class AuthnErrorDetailSpec extends Object
A class which acts as a template forAuthnErrorDetailinstances. 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 anAuthnErrorDetailinstance using themakeInstance()ormakeInstanceBuilder()methods.- Since:
- 9.3
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAuthnErrorDetailSpec.BuilderA fluent builder forAuthnErrorDetailSpecspecs.
-
Constructor Summary
Constructors Constructor Description AuthnErrorDetailSpec(String parentCode, String code, String message)Create a spec with the specified parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCode()Get the error code.StringgetMessage()Get the developer-facing error message.StringgetParentCode()Get the parent error code.StringgetTarget()If the error applies to a specific field in an incoming API request, this identifies the name of the JSON field.StringgetUserMessageKey()Get the user-facing error message key.AuthnErrorDetailmakeInstance()Get an instance ofAuthnErrorDetailbased on the parameters in this spec.AuthnErrorDetail.BuildermakeInstanceBuilder()Get anAuthnErrorDetailbuilder initialized with the parameters from this spec.
-
-
-
Method Detail
-
makeInstanceBuilder
public AuthnErrorDetail.Builder makeInstanceBuilder()
Get anAuthnErrorDetailbuilder initialized with the parameters from this spec.
-
makeInstance
public AuthnErrorDetail makeInstance()
Get an instance ofAuthnErrorDetailbased on the parameters in this spec.
-
getParentCode
public String getParentCode()
Get the parent error code. This is the top-level error code that this detail spec is associated with.
-
getCode
public String getCode()
Get the error code.
-
getMessage
public String getMessage()
Get the developer-facing error message.
-
getUserMessageKey
public String 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
public String 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.
-
-