Uses of Interface
org.apache.shiro.crypto.hash.Hash
-
Packages that use Hash Package Description org.apache.shiro.authc.credential Support for validating credentials (such as passwords or X509 certificates) during authentication via theCredentialsMatcher
interface and its supporting implementations.org.apache.shiro.crypto.hash Cryptographic Hashing components that greatly simplify one-way data hashing in an application.org.apache.shiro.crypto.hash.format -
-
Uses of Hash in org.apache.shiro.authc.credential
Methods in org.apache.shiro.authc.credential that return Hash Modifier and Type Method Description Hash
DefaultPasswordService. hashPassword(Object plaintext)
Hash
HashingPasswordService. hashPassword(Object plaintext)
Hashes the specified plaintext password using internal hashing configuration settings pertinent to password hashing.protected Hash
HashedCredentialsMatcher. hashProvidedCredentials(Object credentials, Object salt, int hashIterations)
Hashes the provided credentials a total ofhashIterations
times, using the given salt.Methods in org.apache.shiro.authc.credential with parameters of type Hash Modifier and Type Method Description protected HashRequest
DefaultPasswordService. buildHashRequest(ByteSource plaintext, Hash saved)
boolean
DefaultPasswordService. passwordsMatch(Object plaintext, Hash saved)
boolean
HashingPasswordService. passwordsMatch(Object plaintext, Hash savedPasswordHash)
Returnstrue
if thesubmittedPlaintext
password matches the existingsavedPasswordHash
,false
otherwise. -
Uses of Hash in org.apache.shiro.crypto.hash
Classes in org.apache.shiro.crypto.hash that implement Hash Modifier and Type Class Description class
AbstractHash
Deprecated.in Shiro 1.1 in favor of using the concreteSimpleHash
implementation directly.class
Md2Hash
Generates an MD2 Hash (RFC 1319) from a given input source with an optional salt and hash iterations.class
Md5Hash
Generates an MD5 Hash (RFC 1321) from a given input source with an optional salt and hash iterations.class
Sha1Hash
Generates an SHA-1 Hash (Secure Hash Standard, NIST FIPS 180-1) from a given input source with an optional salt and hash iterations.class
Sha256Hash
Generates an SHA-256 Hash from a given input source with an optional salt and hash iterations.class
Sha384Hash
Generates an SHA-384 Hash from a given input source with an optional salt and hash iterations.class
Sha512Hash
Generates an SHA-512 Hash from a given input source with an optional salt and hash iterations.class
SimpleHash
AHash
implementation that allows anyMessageDigest
algorithm name to be used.Methods in org.apache.shiro.crypto.hash that return Hash Modifier and Type Method Description Hash
DefaultHashService. computeHash(HashRequest request)
Computes and responds with a hash based on the specified request.Hash
HashService. computeHash(HashRequest request)
Computes a hash based on the given request. -
Uses of Hash in org.apache.shiro.crypto.hash.format
Methods in org.apache.shiro.crypto.hash.format that return Hash Modifier and Type Method Description Hash
ParsableHashFormat. parse(String formatted)
Parses the specified formatted string and returns the corresponding Hash instance.Hash
Shiro1CryptFormat. parse(String formatted)
Methods in org.apache.shiro.crypto.hash.format with parameters of type Hash Modifier and Type Method Description String
Base64Format. format(Hash hash)
Returnshash != null ? hash.toBase64() : null
.String
HashFormat. format(Hash hash)
Returns a formatted string representing the specified Hash instance.String
HexFormat. format(Hash hash)
Returnshash != null ? hash.toHex() : null
.String
Shiro1CryptFormat. format(Hash hash)
-