Class PasswordFile
- java.lang.Object
-
- net.officefloor.web.security.store.PasswordFile
-
public class PasswordFile extends java.lang.Object
Contents 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 void
addEntry(java.lang.String userId, byte[] credentials, java.util.Set<java.lang.String> roles)
Adds aPasswordEntry
to thisPasswordFile
.java.lang.String
getAlgorithm()
Obtains the algorithm encrypting the credentials.PasswordEntry
getEntry(java.lang.String userId)
Obtains thePasswordEntry
for 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 thePasswordEntry
for the user Id.- Parameters:
userId
- User Id.- Returns:
PasswordEntry
for the user Id ornull
if user Id not exist within thisPasswordFile
.
-
addEntry
public void addEntry(java.lang.String userId, byte[] credentials, java.util.Set<java.lang.String> roles)
Adds aPasswordEntry
to thisPasswordFile
.- Parameters:
userId
- User Id.credentials
- Credentials of user.roles
- Roles.
-
-