Interface RemoteAuthnResultTranslator
-
public interface RemoteAuthnResultTranslatorProcessesRemotelyAuthenticatedInputby applying a translation profile to it and returnsRemotelyAuthenticatedPrincipalorAuthenticationResultdepending whether caller wants to have a possibility to postprocess the translation profile output or not.- Author:
- K. Benedyczak
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RemoteAuthenticationResultassembleAuthenticationResult(RemotelyAuthenticatedPrincipal remoteContext, String registrationForm, boolean allowAssociation)Tries to resolve the primary identity from the previously createdRemotelyAuthenticatedPrincipal(usually via#processRemoteInput(RemotelyAuthenticatedInput)) and returns a finalAuthenticationResultdepending on the success of this action.RemoteAuthenticationResultgetTranslatedResult(RemotelyAuthenticatedInput input, String profile, boolean dryRun, Optional<IdentityTaV> identity, String registrationForm, boolean allowAssociation)This method is calling#processRemoteInput(RemotelyAuthenticatedInput)and then#assembleAuthenticationResult(RemotelyAuthenticatedPrincipal).RemoteAuthenticationResultgetTranslatedResult(RemotelyAuthenticatedInput input, TranslationProfile profile, boolean dryRun, Optional<IdentityTaV> identity, String registrationForm, boolean allowAssociation)Equivalent to#getResult(RemotelyAuthenticatedInput, String, boolean, Optional)but translation profile is given directlyRemotelyAuthenticatedPrincipaltranslateRemoteInput(RemotelyAuthenticatedInput input, TranslationProfile profile, boolean dryRun, Optional<IdentityTaV> identity)Invokes the configured translation profile on the remotely obtained authentication input.
-
-
-
Method Detail
-
getTranslatedResult
RemoteAuthenticationResult getTranslatedResult(RemotelyAuthenticatedInput input, String profile, boolean dryRun, Optional<IdentityTaV> identity, String registrationForm, boolean allowAssociation) throws RemoteAuthenticationException
This method is calling#processRemoteInput(RemotelyAuthenticatedInput)and then#assembleAuthenticationResult(RemotelyAuthenticatedPrincipal). Usually it is the only one that is used, whenRemotelyAuthenticatedInputis obtained in an implementation specific way.- Throws:
RemoteAuthenticationException
-
getTranslatedResult
RemoteAuthenticationResult getTranslatedResult(RemotelyAuthenticatedInput input, TranslationProfile profile, boolean dryRun, Optional<IdentityTaV> identity, String registrationForm, boolean allowAssociation) throws RemoteAuthenticationException
Equivalent to#getResult(RemotelyAuthenticatedInput, String, boolean, Optional)but translation profile is given directly- Throws:
RemoteAuthenticationException
-
assembleAuthenticationResult
RemoteAuthenticationResult assembleAuthenticationResult(RemotelyAuthenticatedPrincipal remoteContext, String registrationForm, boolean allowAssociation) throws RemoteAuthenticationException
Tries to resolve the primary identity from the previously createdRemotelyAuthenticatedPrincipal(usually via#processRemoteInput(RemotelyAuthenticatedInput)) and returns a finalAuthenticationResultdepending on the success of this action.- Throws:
RemoteAuthenticationException
-
translateRemoteInput
RemotelyAuthenticatedPrincipal translateRemoteInput(RemotelyAuthenticatedInput input, TranslationProfile profile, boolean dryRun, Optional<IdentityTaV> identity) throws EngineException
Invokes the configured translation profile on the remotely obtained authentication input. Then assembles theRemotelyAuthenticatedPrincipalfrom the processed input containing the information about what from the remote data is or can be meaningful in the local DB.- Parameters:
identity- if not empty then fixes the identity for which the profile is executed.- Throws:
EngineException
-
-