public class PasswordFile extends Object
Constructor and Description |
---|
PasswordFile(String algorithm)
Initiate.
|
Modifier and Type | Method and Description |
---|---|
void |
addEntry(String userId,
byte[] credentials,
Set<String> roles)
Adds a
PasswordEntry to this PasswordFile . |
String |
getAlgorithm()
Obtains the algorithm encrypting the credentials.
|
PasswordEntry |
getEntry(String userId)
Obtains the
PasswordEntry for the user Id. |
public PasswordFile(String algorithm)
algorithm
- Algorithm encrypting the password entry credentials.public String getAlgorithm()
public PasswordEntry getEntry(String userId)
PasswordEntry
for the user Id.userId
- User Id.PasswordEntry
for the user Id or null
if
user Id not exist within this PasswordFile
.public void addEntry(String userId, byte[] credentials, Set<String> roles)
PasswordEntry
to this PasswordFile
.userId
- User Id.credentials
- Credentials of user.roles
- Roles.Copyright © 2005–2016. All rights reserved.