Class Credentials
java.lang.Object
com.skava.model.datatransferobjects.Credentials
- All Implemented Interfaces:
Serializable
This class defines the model Credentials (Data transfer Object) holds the credentials details. Credentials is where
secured information like password, old password and security questions of a user are maintained.
- Author:
- Infosys Equinox
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
This method is used for password hashing.boolean
isValidPassword
(String validatorClass, String validatorConfig, Map<String, String> propMap, long collectionId, CollectionCommonServices collectionCommonServices)
-
Constructor Details
-
Credentials
public Credentials()Default constructor
-
-
Method Details
-
doHashing
This method is used for password hashing.- Parameters:
pwdHashingAlgorithm
- specifies hashing algorithm for hashing the password.
-
isValidPassword
public boolean isValidPassword(String validatorClass, String validatorConfig, Map<String, String> propMap, long collectionId, CollectionCommonServices collectionCommonServices) - Parameters:
collectionCommonServices
-collectionId
- This method is used to validates the give Password with validator class and config.validatorClass
- Indicates the validator class for validating the given password.validatorConfig
- Indicates the validator config for validating the given password.propMap
- Indicates the collection properties map.- Returns:
- Boolean value true, if it is valid else return false.
-