org.silverpeas.authentication.verifier
Class AuthenticationUserVerifierFactory

java.lang.Object
  extended by org.silverpeas.authentication.verifier.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


Constructor Summary
AuthenticationUserVerifierFactory()
           
 
Method Summary
static UserCanLoginVerifier getUserCanLoginVerifier(AuthenticationCredential credential)
          Gets user state verifier from credentials.
static UserCanLoginVerifier getUserCanLoginVerifier(String userId)
          Gets user state verifier from a user identifier.
static UserCanLoginVerifier getUserCanLoginVerifier(UserDetail user)
          Gets user state verifier from UserDetail.
static UserCanTryAgainToLoginVerifier getUserCanTryAgainToLoginVerifier(AuthenticationCredential credential)
          Gets user connection attempt verifier from a login and a domain identifier.
static UserCanTryAgainToLoginVerifier getUserCanTryAgainToLoginVerifier(UserDetail user)
          Gets user connection attempt verifier from a login and a domain identifier.
static UserMustAcceptTermsOfServiceVerifier getUserMustAcceptTermsOfServiceVerifier(AuthenticationCredential credential)
          Gets user must accept terms of service verifier from credentials.
static UserMustAcceptTermsOfServiceVerifier getUserMustAcceptTermsOfServiceVerifier(String tosToken)
          Gets user must accept terms of service verifier from a token.
static UserMustChangePasswordVerifier getUserMustChangePasswordVerifier(AuthenticationCredential credential)
          Gets user must change his password verifier from credentials.
static UserMustChangePasswordVerifier getUserMustChangePasswordVerifier(UserDetail user)
          Gets user must change his password verifier from credentials.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthenticationUserVerifierFactory

public AuthenticationUserVerifierFactory()
Method Detail

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


Copyright © 2016 Silverpeas. All Rights Reserved.