Class AuthenticationUserVerifierFactory


  • public class AuthenticationUserVerifierFactory
    extends Object
    Factory that provides some verifiers about user authentication : - one to verify if the user can login in relation to its account state - one to verify if the user can try to login one more time after a login error User: Yohann Chastagnier Date: 06/02/13
    • Method Detail

      • removeFromRequestCache

        public static void removeFromRequestCache​(UserDetail user)
        Removes from request cache the given user.
        Parameters:
        user - a user instance.
      • getUserCanLoginVerifier

        public static UserCanLoginVerifier getUserCanLoginVerifier​(UserDetail user)
        Gets user state verifier from UserDetail.
        Parameters:
        user -
        Returns:
        the verifier that checks if the user can login in relation to its account state
      • getUserCanLoginVerifier

        public static UserCanLoginVerifier getUserCanLoginVerifier​(String userId)
        Gets user state verifier from a user identifier.
        Parameters:
        userId -
        Returns:
        the verifier that checks if the user can login in relation to its account state
      • getUserCanLoginVerifier

        public static UserCanLoginVerifier getUserCanLoginVerifier​(AuthenticationCredential credential)
        Gets user state verifier from credentials.
        Parameters:
        credential -
        Returns:
        the verifier that checks if the user can login in relation to its account state
      • getUserCanTryAgainToLoginVerifier

        public static UserCanTryAgainToLoginVerifier getUserCanTryAgainToLoginVerifier​(AuthenticationCredential credential)
        Gets user connection attempt verifier from a login and a domain identifier.
        Parameters:
        credential -
        Returns:
        the verifier that checks if the user can try to login one more time after a login error
      • getUserCanTryAgainToLoginVerifier

        public static UserCanTryAgainToLoginVerifier getUserCanTryAgainToLoginVerifier​(UserDetail user)
        Gets user connection attempt verifier from a login and a domain identifier.
        Parameters:
        user -
        Returns:
        the verifier that checks if the user can try to login one more time after a login error
      • getUserMustChangePasswordVerifier

        public static UserMustChangePasswordVerifier getUserMustChangePasswordVerifier​(UserDetail user)
        Gets user must change his password verifier from credentials.
        Parameters:
        user -
        Returns:
        the verifier that checks if the user must change his password or if the user will soon have to change his password
      • getUserMustChangePasswordVerifier

        public static UserMustChangePasswordVerifier getUserMustChangePasswordVerifier​(AuthenticationCredential credential)
        Gets user must change his password verifier from credentials.
        Parameters:
        credential -
        Returns:
        the verifier that checks if the user must change his password or if the user will soon have to change his password
      • getUserMustAcceptTermsOfServiceVerifier

        public static UserMustAcceptTermsOfServiceVerifier getUserMustAcceptTermsOfServiceVerifier​(AuthenticationCredential credential)
        Gets user must accept terms of service verifier from credentials.
        Parameters:
        credential -
        Returns:
        the verifier that checks if the user must accept terms of service
      • getUserMustAcceptTermsOfServiceVerifier

        public static UserMustAcceptTermsOfServiceVerifier getUserMustAcceptTermsOfServiceVerifier​(String tosToken)
        Gets user must accept terms of service verifier from a token.
        Parameters:
        tosToken -
        Returns:
        the verifier that checks if the user must accept terms of service