Interface IPasswordSalt
-
- All Known Implementing Classes:
PasswordSalt,PasswordSaltBCrypt
@MustImplementEqualsAndHashcode public interface IPasswordSaltBase interface for a password salt.- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetSaltByteCount()byte[]getSaltBytes()StringgetSaltString()
-
-
-
Method Detail
-
getSaltByteCount
int getSaltByteCount()
- Returns:
- The number of salt bytes used. Always > 0.
-
getSaltBytes
@Nonnull @Nonempty @ReturnsMutableCopy byte[] getSaltBytes()
- Returns:
- A copy of the pure salt bytes. Never
nullnor empty.
-
-