public class AuthnAdapterResponse extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AuthnAdapterResponse.AUTHN_STATUS |
Constructor and Description |
---|
AuthnAdapterResponse() |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getAttributeMap()
Get a map of attributes that uniquely identify the authenticated security context of the user.
|
AuthnAdapterResponse.AUTHN_STATUS |
getAuthnStatus()
Get the status of an authentication returned from an IdP adapter.
|
int |
getErrorCode()
Get error code.
|
String |
getErrorMessage()
Get an error message.
|
String |
getUsername()
Get the username that has been authenticated or attempted.
|
void |
setAttributeMap(Map<String,Object> attributeMap)
Set a map of attributes that uniquely identify the authenticated security context of the user.
|
void |
setAuthnStatus(AuthnAdapterResponse.AUTHN_STATUS authnStatus)
Set authentication status.
|
void |
setErrorCode(int errorCode)
Set error code.
|
void |
setErrorMessage(String errorMessage)
Set error message.
|
void |
setUsername(String username)
Set username that has been authenticated or attempted.
|
public Map<String,Object> getAttributeMap()
IdpAuthenticationAdapter.getAdapterDescriptor()
).
This map will also be passed back
to the adapter implementation on logout as the first parameter of the
IdpAuthenticationAdapter.logoutAuthN(java.util.Map, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
method. This
enables the adapter to identify what session or security context to terminate during logout.public void setAttributeMap(Map<String,Object> attributeMap)
AuthnAdapterResponse.AUTHN_STATUS.SUCCESS
.attributeMap
- a map of attributespublic AuthnAdapterResponse.AUTHN_STATUS getAuthnStatus()
public void setAuthnStatus(AuthnAdapterResponse.AUTHN_STATUS authnStatus)
authnStatus
- public int getErrorCode()
public void setErrorCode(int errorCode)
errorCode
- public String getErrorMessage()
public void setErrorMessage(String errorMessage)
errorMessage
- public String getUsername()
public void setUsername(String username)
username
- Copyright 2019 Ping Identity Corp. All rights reserved.