Package org.passay
Class PasswordData.PrefixSalt
- java.lang.Object
-
- org.passay.PasswordData.PrefixSalt
-
- All Implemented Interfaces:
PasswordData.Salt
- Enclosing class:
- PasswordData
public static class PasswordData.PrefixSalt extends Object implements PasswordData.Salt
A salt that is concatenated as a prefix to the password data.
-
-
Constructor Summary
Constructors Constructor Description PrefixSalt(String slt)
Creates a new salt with the given salt data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
applyTo(String password)
Applies the salt to the password, returning the combined string to be digested.
-
-
-
Constructor Detail
-
PrefixSalt
public PrefixSalt(String slt)
Creates a new salt with the given salt data.- Parameters:
slt
- the salt data
-
-
Method Detail
-
applyTo
public String applyTo(String password)
Description copied from interface:PasswordData.Salt
Applies the salt to the password, returning the combined string to be digested.- Specified by:
applyTo
in interfacePasswordData.Salt
- Parameters:
password
- the cleartext password to apply the salt to- Returns:
- the salted password
-
-