Class SandboxAuthenticationResult
- java.lang.Object
-
- pl.edu.icm.unity.engine.api.authn.sandbox.SandboxAuthenticationResult
-
- All Implemented Interfaces:
AuthenticationResult
public class SandboxAuthenticationResult extends Object implements AuthenticationResult
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface pl.edu.icm.unity.engine.api.authn.AuthenticationResult
AuthenticationResult.DenyReason, AuthenticationResult.ErrorResult, AuthenticationResult.ResolvableError, AuthenticationResult.Status, AuthenticationResult.SuccessResult
-
-
Field Summary
Fields Modifier and Type Field Description SandboxAuthnContextsandboxAuthnInfo
-
Constructor Summary
Constructors Constructor Description SandboxAuthenticationResult(AuthenticationResult base, SandboxAuthnContext sandboxAuthnInfo)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RemoteAuthenticationResultasRemote()Optional<AuthenticationResult.DenyReason>getDenyReason()AuthenticationResult.ErrorResultgetErrorResult()static SandboxAuthenticationResultgetInstanceFromResult(AuthenticationResult result)We have two cases (what is sort of design flaw): we can get sandbox result directly (a typical case) or we can get LocalAuthnResult, in case when we have sandbox authn in account association flow, and user needs to provide existing account to associate unknwon remote with it.AuthenticationResult.StatusgetStatus()AuthenticationResult.SuccessResultgetSuccessResult()booleanisRemote()StringtoString()StringtoStringFull()-
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
-
-
-
-
Field Detail
-
sandboxAuthnInfo
public final SandboxAuthnContext sandboxAuthnInfo
-
-
Constructor Detail
-
SandboxAuthenticationResult
public SandboxAuthenticationResult(AuthenticationResult base, SandboxAuthnContext sandboxAuthnInfo)
-
-
Method Detail
-
getInstanceFromResult
public static SandboxAuthenticationResult getInstanceFromResult(AuthenticationResult result)
We have two cases (what is sort of design flaw): we can get sandbox result directly (a typical case) or we can get LocalAuthnResult, in case when we have sandbox authn in account association flow, and user needs to provide existing account to associate unknwon remote with it.
-
getStatus
public AuthenticationResult.Status getStatus()
- Specified by:
getStatusin interfaceAuthenticationResult
-
isRemote
public boolean isRemote()
- Specified by:
isRemotein interfaceAuthenticationResult
-
toStringFull
public String toStringFull()
- Specified by:
toStringFullin interfaceAuthenticationResult
-
getSuccessResult
public AuthenticationResult.SuccessResult getSuccessResult()
- Specified by:
getSuccessResultin interfaceAuthenticationResult
-
getErrorResult
public AuthenticationResult.ErrorResult getErrorResult()
- Specified by:
getErrorResultin interfaceAuthenticationResult
-
asRemote
public RemoteAuthenticationResult asRemote()
- Specified by:
asRemotein interfaceAuthenticationResult
-
getDenyReason
public Optional<AuthenticationResult.DenyReason> getDenyReason()
- Specified by:
getDenyReasonin interfaceAuthenticationResult
-
-