Class RemoteSandboxAuthnContext
java.lang.Object
pl.edu.icm.unity.engine.api.authn.remote.RemoteSandboxAuthnContext
- All Implemented Interfaces:
SandboxAuthnContext
Stores full information on the remote sandboxed authentication.
Either
RemotelyAuthenticatedPrincipal
is
provided (successful authN) or exception with unprocessed RemotelyAuthenticatedInput
.
The most of the information is in authnContext, which is enriched with logs and potential error.
User should be careful when using the authnResult. It may happen that many of the
fields are not initialized in case of authentication failure.- Author:
- K. Benedyczak
-
Method Summary
Modifier and TypeMethodDescriptionstatic RemoteSandboxAuthnContext
failedAuthn
(Exception authnException, String logs, RemotelyAuthenticatedInput input) getLogs()
static RemoteSandboxAuthnContext
succeededAuthn
(RemotelyAuthenticatedPrincipal authnResult, String logs) toString()
-
Method Details
-
succeededAuthn
public static RemoteSandboxAuthnContext succeededAuthn(RemotelyAuthenticatedPrincipal authnResult, String logs) -
failedAuthn
public static RemoteSandboxAuthnContext failedAuthn(Exception authnException, String logs, RemotelyAuthenticatedInput input) -
getRemotePrincipal
- Specified by:
getRemotePrincipal
in interfaceSandboxAuthnContext
-
getAuthnException
- Specified by:
getAuthnException
in interfaceSandboxAuthnContext
-
getLogs
- Specified by:
getLogs
in interfaceSandboxAuthnContext
-
toString
-