Class AuthenticationResult
- java.lang.Object
-
- pl.edu.icm.unity.engine.api.authn.AuthenticationResult
-
public class AuthenticationResult extends java.lang.Object
This class object is returned by authenticator with information about authentication result. This cover authentication result of a single authenticator, not the combined result of authentication with all authenticators in the set.- Author:
- K. Benedyczak
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AuthenticationResult.Status
-
Constructor Summary
Constructors Constructor Description AuthenticationResult(AuthenticationResult.Status status, AuthenticatedEntity authenticatedEntity)
Used by local varificatorsAuthenticationResult(AuthenticationResult.Status status, RemotelyAuthenticatedContext remoteAuthnContext, AuthenticatedEntity authenticatedEntity)
Used by remote verificators
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthenticatedEntity
getAuthenticatedEntity()
java.lang.String
getFormForUnknownPrincipal()
RemotelyAuthenticatedContext
getRemoteAuthnContext()
AuthenticationResult.Status
getStatus()
boolean
isEnableAssociation()
void
setEnableAssociation(boolean enableAssociation)
void
setFormForUnknownPrincipal(java.lang.String formForUnknownPrincipal)
java.lang.String
toString()
-
-
-
Constructor Detail
-
AuthenticationResult
public AuthenticationResult(AuthenticationResult.Status status, AuthenticatedEntity authenticatedEntity)
Used by local varificators- Parameters:
status
-authenticatedEntity
-
-
AuthenticationResult
public AuthenticationResult(AuthenticationResult.Status status, RemotelyAuthenticatedContext remoteAuthnContext, AuthenticatedEntity authenticatedEntity)
Used by remote verificators- Parameters:
status
-remoteAuthnContext
-authenticatedEntity
-
-
-
Method Detail
-
getStatus
public AuthenticationResult.Status getStatus()
-
getAuthenticatedEntity
public AuthenticatedEntity getAuthenticatedEntity()
-
getRemoteAuthnContext
public RemotelyAuthenticatedContext getRemoteAuthnContext()
-
getFormForUnknownPrincipal
public java.lang.String getFormForUnknownPrincipal()
-
setFormForUnknownPrincipal
public void setFormForUnknownPrincipal(java.lang.String formForUnknownPrincipal)
-
isEnableAssociation
public boolean isEnableAssociation()
-
setEnableAssociation
public void setEnableAssociation(boolean enableAssociation)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-