Class PasswordFile
java.lang.Object
net.officefloor.web.security.store.PasswordFile
Contents of the password file.
- Author:
- Daniel Sagenschneider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds aPasswordEntryto thisPasswordFile.Obtains the algorithm encrypting the credentials.Obtains thePasswordEntryfor the user Id.
-
Constructor Details
-
PasswordFile
Initiate.- Parameters:
algorithm- Algorithm encrypting the password entry credentials.
-
-
Method Details
-
getAlgorithm
Obtains the algorithm encrypting the credentials.- Returns:
- Algorithm encrypting the credentials.
-
getEntry
Obtains thePasswordEntryfor the user Id.- Parameters:
userId- User Id.- Returns:
PasswordEntryfor the user Id ornullif user Id not exist within thisPasswordFile.
-
addEntry
Adds aPasswordEntryto thisPasswordFile.- Parameters:
userId- User Id.credentials- Credentials of user.roles- Roles.
-