Class CaptchaProvider.AuthenticationStatus
- java.lang.Object
-
- com.pingidentity.sdk.captchaprovider.CaptchaProvider.AuthenticationStatus
-
- Enclosing interface:
- CaptchaProvider
public static final class CaptchaProvider.AuthenticationStatus extends Object
A readonly representation of the current authentication status- Since:
- 11.3
-
-
Field Summary
Fields Modifier and Type Field Description AuthnAdapterResponseauthnAdapterResponse
-
Constructor Summary
Constructors Constructor Description AuthenticationStatus(AuthnAdapterResponse authnAdapterResponse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>getAttributeMap()Get a Readonly map of attributes that uniquely identify the authenticated security context of the user.AuthnAdapterResponse.AUTHN_STATUSgetAuthnStatus()Get the status of an authentication returned from an IdP adapter.intgetErrorCode()Get error code.StringgetErrorMessage()Get an error message.StringgetUsername()Get the username that has been authenticated or attempted.
-
-
-
Field Detail
-
authnAdapterResponse
public final AuthnAdapterResponse authnAdapterResponse
-
-
Constructor Detail
-
AuthenticationStatus
public AuthenticationStatus(AuthnAdapterResponse authnAdapterResponse)
-
-
Method Detail
-
getAuthnStatus
public AuthnAdapterResponse.AUTHN_STATUS getAuthnStatus()
Get the status of an authentication returned from an IdP adapter.- Returns:
- authentication status
- Since:
- 11.3
-
getAttributeMap
public Map<String,Object> getAttributeMap()
Get a Readonly map of attributes that uniquely identify the authenticated security context of the user. refer toAuthnAdapterResponse.getAttributeMap()for more details.- Returns:
- a map of attributes
- Since:
- 11.3
-
getErrorCode
public int getErrorCode()
Get error code.- Returns:
- error code
- Since:
- 11.3
-
getUsername
public String getUsername()
Get the username that has been authenticated or attempted.- Returns:
- username
- Since:
- 11.3
-
getErrorMessage
public String getErrorMessage()
Get an error message. The message may be logged in audit log.- Returns:
- error message
- Since:
- 11.3
-
-