Class RemoteAuthenticationResult
- java.lang.Object
-
- pl.edu.icm.unity.engine.api.authn.RemoteAuthenticationResult
-
- All Implemented Interfaces:
AuthenticationResult
public class RemoteAuthenticationResult extends Object implements AuthenticationResult
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RemoteAuthenticationResult.RemoteErrorResult
static class
RemoteAuthenticationResult.RemoteSuccessResult
static class
RemoteAuthenticationResult.UnknownRemotePrincipalResult
-
Nested classes/interfaces inherited from interface pl.edu.icm.unity.engine.api.authn.AuthenticationResult
AuthenticationResult.DenyReason, AuthenticationResult.ErrorResult, AuthenticationResult.ResolvableError, AuthenticationResult.Status, AuthenticationResult.SuccessResult
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RemoteAuthenticationResult(RemoteAuthenticationResult toClone)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface pl.edu.icm.unity.engine.api.authn.AuthenticationResult
asLocal, asRemote
-
-
-
-
Constructor Detail
-
RemoteAuthenticationResult
protected RemoteAuthenticationResult(RemoteAuthenticationResult toClone)
-
-
Method Detail
-
notApplicable
public static RemoteAuthenticationResult notApplicable()
-
failed
public static RemoteAuthenticationResult failed(RemotelyAuthenticatedPrincipal remotePrincipal, Exception cause, AuthenticationResult.ResolvableError error)
-
failed
public static RemoteAuthenticationResult failed(RemotelyAuthenticatedPrincipal remotePrincipal, AuthenticationResult.ResolvableError error)
-
failed
public static RemoteAuthenticationResult failed()
-
failed
public static RemoteAuthenticationResult failed(Exception cause)
-
successful
public static RemoteAuthenticationResult successful(RemotelyAuthenticatedPrincipal remotePrincipal, AuthenticatedEntity authenticatedEntity)
-
successfulPartial
public static RemoteAuthenticationResult successfulPartial(RemotelyAuthenticatedPrincipal remotePrincipal, AuthenticatedEntity authenticatedEntity)
-
unknownRemotePrincipal
public static RemoteAuthenticationResult unknownRemotePrincipal(RemotelyAuthenticatedPrincipal remotePrincipal, String formForUnknownPrincipal, boolean enableAssociation)
-
getStatus
public AuthenticationResult.Status getStatus()
- Specified by:
getStatus
in interfaceAuthenticationResult
-
isRemote
public boolean isRemote()
- Specified by:
isRemote
in interfaceAuthenticationResult
-
getSuccessResult
public RemoteAuthenticationResult.RemoteSuccessResult getSuccessResult()
- Specified by:
getSuccessResult
in interfaceAuthenticationResult
-
getNotApplicableResult
public LocalAuthenticationResult.NotApplicableResult getNotApplicableResult()
-
getUnknownRemotePrincipalResult
public RemoteAuthenticationResult.UnknownRemotePrincipalResult getUnknownRemotePrincipalResult()
-
getErrorResult
public RemoteAuthenticationResult.RemoteErrorResult getErrorResult()
- Specified by:
getErrorResult
in interfaceAuthenticationResult
-
getRemotelyAuthenticatedPrincipal
public RemotelyAuthenticatedPrincipal getRemotelyAuthenticatedPrincipal()
-
toStringFull
public String toStringFull()
- Specified by:
toStringFull
in interfaceAuthenticationResult
-
getDenyReason
public Optional<AuthenticationResult.DenyReason> getDenyReason()
- Specified by:
getDenyReason
in interfaceAuthenticationResult
-
-