Class LocalAuthenticationResult
- java.lang.Object
-
- pl.edu.icm.unity.engine.api.authn.LocalAuthenticationResult
-
- All Implemented Interfaces:
AuthenticationResult
public class LocalAuthenticationResult extends Object implements AuthenticationResult
This class object is returned by local authenticator with information about authentication result.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LocalAuthenticationResult.NotApplicableResult
-
Nested classes/interfaces inherited from interface pl.edu.icm.unity.engine.api.authn.AuthenticationResult
AuthenticationResult.DenyReason, AuthenticationResult.ErrorResult, AuthenticationResult.ResolvableError, AuthenticationResult.Status, AuthenticationResult.SuccessResult
-
-
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
-
-
-
-
Method Detail
-
failed
public static LocalAuthenticationResult failed()
-
failed
public static LocalAuthenticationResult failed(Exception cause)
-
failed
public static LocalAuthenticationResult failed(Exception cause, AuthenticationResult.DenyReason denyReason)
-
failed
public static LocalAuthenticationResult failed(AuthenticationResult.ResolvableError error)
-
failed
public static LocalAuthenticationResult failed(AuthenticationResult.ResolvableError error, AuthenticationResult.DenyReason denyReason)
-
failed
public static LocalAuthenticationResult failed(AuthenticationResult.ResolvableError error, Exception cause, AuthenticationResult.DenyReason denyReason)
-
failed
public static LocalAuthenticationResult failed(AuthenticationResult.ResolvableError error, Exception cause)
-
notApplicable
public static LocalAuthenticationResult notApplicable()
-
successful
public static LocalAuthenticationResult successful(AuthenticatedEntity authenticatedEntity)
-
isRemote
public boolean isRemote()
- Specified by:
isRemote
in interfaceAuthenticationResult
-
getStatus
public AuthenticationResult.Status getStatus()
- Specified by:
getStatus
in interfaceAuthenticationResult
-
getSuccessResult
public AuthenticationResult.SuccessResult getSuccessResult()
- Specified by:
getSuccessResult
in interfaceAuthenticationResult
-
getNotApplicableResult
public LocalAuthenticationResult.NotApplicableResult getNotApplicableResult()
-
getErrorResult
public AuthenticationResult.ErrorResult getErrorResult()
- Specified by:
getErrorResult
in interfaceAuthenticationResult
-
toStringFull
public String toStringFull()
- Specified by:
toStringFull
in interfaceAuthenticationResult
-
getDenyReason
public Optional<AuthenticationResult.DenyReason> getDenyReason()
- Specified by:
getDenyReason
in interfaceAuthenticationResult
-
-