Class PasswordFile
- java.lang.Object
-
- net.officefloor.web.security.store.PasswordFile
-
public class PasswordFile extends java.lang.ObjectContents of the password file.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description PasswordFile(java.lang.String algorithm)Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEntry(java.lang.String userId, byte[] credentials, java.util.Set<java.lang.String> roles)Adds aPasswordEntryto thisPasswordFile.java.lang.StringgetAlgorithm()Obtains the algorithm encrypting the credentials.PasswordEntrygetEntry(java.lang.String userId)Obtains thePasswordEntryfor the user Id.
-
-
-
Method Detail
-
getAlgorithm
public java.lang.String getAlgorithm()
Obtains the algorithm encrypting the credentials.- Returns:
- Algorithm encrypting the credentials.
-
getEntry
public PasswordEntry getEntry(java.lang.String userId)
Obtains thePasswordEntryfor the user Id.- Parameters:
userId- User Id.- Returns:
PasswordEntryfor the user Id ornullif user Id not exist within thisPasswordFile.
-
addEntry
public void addEntry(java.lang.String userId, byte[] credentials, java.util.Set<java.lang.String> roles)Adds aPasswordEntryto thisPasswordFile.- Parameters:
userId- User Id.credentials- Credentials of user.roles- Roles.
-
-