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 SandboxAuthnContext
sandboxAuthnInfo
-
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 RemoteAuthenticationResult
asRemote()
Optional<AuthenticationResult.DenyReason>
getDenyReason()
AuthenticationResult.ErrorResult
getErrorResult()
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.AuthenticationResult.Status
getStatus()
AuthenticationResult.SuccessResult
getSuccessResult()
boolean
isRemote()
String
toString()
String
toStringFull()
-
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:
getStatus
in interfaceAuthenticationResult
-
isRemote
public boolean isRemote()
- Specified by:
isRemote
in interfaceAuthenticationResult
-
toStringFull
public String toStringFull()
- Specified by:
toStringFull
in interfaceAuthenticationResult
-
getSuccessResult
public AuthenticationResult.SuccessResult getSuccessResult()
- Specified by:
getSuccessResult
in interfaceAuthenticationResult
-
getErrorResult
public AuthenticationResult.ErrorResult getErrorResult()
- Specified by:
getErrorResult
in interfaceAuthenticationResult
-
asRemote
public RemoteAuthenticationResult asRemote()
- Specified by:
asRemote
in interfaceAuthenticationResult
-
getDenyReason
public Optional<AuthenticationResult.DenyReason> getDenyReason()
- Specified by:
getDenyReason
in interfaceAuthenticationResult
-
-