public interface RemoteAuthnResultProcessor
RemotelyAuthenticatedInput
by applying a translation profile to it and
returns RemotelyAuthenticatedContext
or AuthenticationResult
depending whether
caller wants to have a possibility to postprocess the translation profile output or not.Modifier and Type | Method and Description |
---|---|
AuthenticationResult |
assembleAuthenticationResult(RemotelyAuthenticatedContext remoteContext)
Tries to resolve the primary identity from the previously created
RemotelyAuthenticatedContext
(usually via #processRemoteInput(RemotelyAuthenticatedInput) ) and returns a
final AuthenticationResult depending on the success of this action. |
AuthenticationResult |
getResult(RemotelyAuthenticatedInput input,
String profile,
boolean dryRun,
Optional<pl.edu.icm.unity.types.basic.IdentityTaV> identity)
This method is calling
#processRemoteInput(RemotelyAuthenticatedInput) and then
assembleAuthenticationResult(RemotelyAuthenticatedContext) . |
AuthenticationResult |
getResult(RemotelyAuthenticatedInput input,
pl.edu.icm.unity.types.translation.TranslationProfile profile,
boolean dryRun,
Optional<pl.edu.icm.unity.types.basic.IdentityTaV> identity)
Equivalent
to
getResult(RemotelyAuthenticatedInput, String, boolean, Optional)
but translation profile is given directly |
RemotelyAuthenticatedContext |
processRemoteInput(RemotelyAuthenticatedInput input,
pl.edu.icm.unity.types.translation.TranslationProfile profile,
boolean dryRun,
Optional<pl.edu.icm.unity.types.basic.IdentityTaV> identity)
Invokes the configured translation profile on the remotely obtained authentication input.
|
AuthenticationResult getResult(RemotelyAuthenticatedInput input, String profile, boolean dryRun, Optional<pl.edu.icm.unity.types.basic.IdentityTaV> identity) throws AuthenticationException
#processRemoteInput(RemotelyAuthenticatedInput)
and then
assembleAuthenticationResult(RemotelyAuthenticatedContext)
.
Usually it is the only one that is used, when RemotelyAuthenticatedInput
is obtained in an implementation specific way.input
- pl.edu.icm.unity.exceptions.EngineException
AuthenticationException
AuthenticationResult getResult(RemotelyAuthenticatedInput input, pl.edu.icm.unity.types.translation.TranslationProfile profile, boolean dryRun, Optional<pl.edu.icm.unity.types.basic.IdentityTaV> identity) throws AuthenticationException
getResult(RemotelyAuthenticatedInput, String, boolean, Optional)
but translation profile is given directlyinput
- pl.edu.icm.unity.exceptions.EngineException
AuthenticationException
AuthenticationResult assembleAuthenticationResult(RemotelyAuthenticatedContext remoteContext) throws AuthenticationException
RemotelyAuthenticatedContext
(usually via #processRemoteInput(RemotelyAuthenticatedInput)
) and returns a
final AuthenticationResult
depending on the success of this action.remoteContext
- pl.edu.icm.unity.exceptions.EngineException
AuthenticationException
RemotelyAuthenticatedContext processRemoteInput(RemotelyAuthenticatedInput input, pl.edu.icm.unity.types.translation.TranslationProfile profile, boolean dryRun, Optional<pl.edu.icm.unity.types.basic.IdentityTaV> identity) throws pl.edu.icm.unity.exceptions.EngineException
RemotelyAuthenticatedContext
from the processed input containing the information about what
from the remote data is or can be meaningful in the local DB.input
- identity
- if not empty then fixes the identity for which the profile is executed.pl.edu.icm.unity.exceptions.EngineException
Copyright © 2019 Unity. All rights reserved.