public interface SaltedAuthenticationInfo extends AuthenticationInfoInterface representing account information that may use a salt when hashing credentials. This interface exists primarily to support environments that hash user credentials (e.g. passwords). Salts should typically be generated from a secure pseudo-random number generator so they are effectively impossible to guess. The salt value should be safely stored along side the account information to ensure it is maintained along with the account's credentials. This interface exists as a way for Shiro to acquire that salt so it can correctly perform
credentials matchingduring login attempts. See the
HashedCredentialsMatcherJavaDoc for more information on hashing credentials with salts.
- See Also:
All Methods Instance Methods Abstract Methods Modifier and Type Method Description
getCredentialsSalt()Returns the salt used to salt the account's credentials or
nullif no salt was used.