Package org.apache.shiro.authc
Interface SaltedAuthenticationInfo
-
- All Superinterfaces:
AuthenticationInfo
,Serializable
- All Known Implementing Classes:
SimpleAccount
,SimpleAuthenticationInfo
public interface SaltedAuthenticationInfo extends AuthenticationInfo
Interface 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 performcredentials matching
during login attempts. See theHashedCredentialsMatcher
JavaDoc for more information on hashing credentials with salts.- Since:
- 1.1
- See Also:
HashedCredentialsMatcher
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.shiro.util.ByteSource
getCredentialsSalt()
Returns the salt used to salt the account's credentials ornull
if no salt was used.-
Methods inherited from interface org.apache.shiro.authc.AuthenticationInfo
getCredentials, getPrincipals
-
-