fr.paris.lutece.plugins.mylutece.modules.directory.authentication.service.security
Class MyluteceDirectorySecurityService

java.lang.Object
  extended by fr.paris.lutece.plugins.mylutece.modules.directory.authentication.service.security.MyluteceDirectorySecurityService
All Implemented Interfaces:
IMyluteceDirectorySecurityService

public class MyluteceDirectorySecurityService
extends java.lang.Object
implements IMyluteceDirectorySecurityService

MyluteceDirectorySecurityService


Field Summary
static java.lang.String BEAN_SERVICE
           
 
Constructor Summary
MyluteceDirectorySecurityService()
           
 
Method Summary
 java.lang.String buildPassword(java.lang.String strUserPassword)
          Build the password depending of the encryption.
 boolean checkActivated(java.lang.String strUserName)
          Check if the account is activated or not
 boolean checkPassword(java.lang.String strUserName, java.lang.String strUserPassword)
          Check the password.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BEAN_SERVICE

public static final java.lang.String BEAN_SERVICE
See Also:
Constant Field Values
Constructor Detail

MyluteceDirectorySecurityService

public MyluteceDirectorySecurityService()
Method Detail

checkPassword

public boolean checkPassword(java.lang.String strUserName,
                             java.lang.String strUserPassword)
Check the password.
This method first check if there is the password encryption is activated. If so, then it encrypts the password and compares it to the one stored in DB.

Specified by:
checkPassword in interface IMyluteceDirectorySecurityService
Parameters:
strUserName - the user name
strUserPassword - the user password
Returns:
true if the password is correct, false otherwise

checkActivated

public boolean checkActivated(java.lang.String strUserName)
Check if the account is activated or not

Specified by:
checkActivated in interface IMyluteceDirectorySecurityService
Parameters:
strUserName - the user name
Returns:
true if the account is activated, false otherwise

buildPassword

public java.lang.String buildPassword(java.lang.String strUserPassword)
Build the password depending of the encryption. If the encryption is enable, then it returns the password encrypted, otherwise it just returns the password given in parameter.

Specified by:
buildPassword in interface IMyluteceDirectorySecurityService
Parameters:
strUserPassword - the password
Returns:
the password encrypted or not


Copyright © 2012 Mairie de Paris. All Rights Reserved.