Interface Client

    • Method Detail

      • getName

        java.lang.String getName()
        Get the name of the client.
        Returns:
        the name of the client
      • getRedirectionAction

        java.util.Optional<RedirectionAction> getRedirectionAction​(WebContext context,
                                                                   SessionStore sessionStore)

        Return the redirection action to the authentication provider (indirect clients).

        Parameters:
        context - the current web context
        sessionStore - the session store
        Returns:
        the redirection to perform (optional)
      • getCredentials

        java.util.Optional<Credentials> getCredentials​(WebContext context,
                                                       SessionStore sessionStore)

        Get the credentials from the web context. If no validation was made remotely (direct client), credentials must be validated at this step.

        Parameters:
        context - the current web context
        sessionStore - the session store
        Returns:
        the credentials (optional)
      • getUserProfile

        java.util.Optional<UserProfile> getUserProfile​(Credentials credentials,
                                                       WebContext context,
                                                       SessionStore sessionStore)
        Get the user profile based on the provided credentials.
        Parameters:
        credentials - credentials
        context - web context
        sessionStore - the session store
        Returns:
        the user profile (optional)
      • renewUserProfile

        java.util.Optional<UserProfile> renewUserProfile​(UserProfile profile,
                                                         WebContext context,
                                                         SessionStore sessionStore)
        Renew the user profile.
        Parameters:
        profile - the user profile
        context - the current web context
        sessionStore - the session store
        Returns:
        the renewed user profile (optional).
      • getLogoutAction

        java.util.Optional<RedirectionAction> getLogoutAction​(WebContext context,
                                                              SessionStore sessionStore,
                                                              UserProfile currentProfile,
                                                              java.lang.String targetUrl)

        Return the logout action (indirect clients).

        Parameters:
        context - the current web context
        sessionStore - the session store
        currentProfile - the currentProfile
        targetUrl - the target url after logout
        Returns:
        the redirection to perform (optional)