Package | Description |
---|---|
org.apache.shiro.authc.credential |
Support for validating credentials (such as passwords or X509 certificates) during
authentication via the
CredentialsMatcher
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 |
Modifier and Type | Method and Description |
---|---|
Hash |
HashingPasswordService.hashPassword(Object plaintext)
Hashes the specified plaintext password using internal hashing configuration settings pertinent to password
hashing.
|
Hash |
DefaultPasswordService.hashPassword(Object plaintext) |
protected Hash |
HashedCredentialsMatcher.hashProvidedCredentials(Object credentials,
Object salt,
int hashIterations)
Hashes the provided credentials a total of
hashIterations times, using the given salt. |
Modifier and Type | Method and Description |
---|---|
protected HashRequest |
DefaultPasswordService.buildHashRequest(ByteSource plaintext,
Hash saved) |
boolean |
HashingPasswordService.passwordsMatch(Object plaintext,
Hash savedPasswordHash)
Returns
true if the submittedPlaintext password matches the existing savedPasswordHash ,
false otherwise. |
boolean |
DefaultPasswordService.passwordsMatch(Object plaintext,
Hash saved) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractHash
Deprecated.
in Shiro 1.1 in favor of using the concrete
SimpleHash 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
A
Hash implementation that allows any MessageDigest algorithm name to
be used. |
Modifier and Type | Method and Description |
---|---|
Hash |
HashService.computeHash(HashRequest request)
Computes a hash based on the given request.
|
Hash |
DefaultHashService.computeHash(HashRequest request)
Computes and responds with a hash based on the specified request.
|
Modifier and Type | Method and Description |
---|---|
Hash |
Shiro1CryptFormat.parse(String formatted) |
Hash |
ParsableHashFormat.parse(String formatted)
Parses the specified formatted string and returns the corresponding Hash instance.
|
Modifier and Type | Method and Description |
---|---|
String |
Shiro1CryptFormat.format(Hash hash) |
String |
HexFormat.format(Hash hash)
Returns
hash != null ? hash.toHex() : null . |
String |
Base64Format.format(Hash hash)
Returns
hash != null ? hash.toBase64() : null . |
String |
HashFormat.format(Hash hash)
Returns a formatted string representing the specified Hash instance.
|
Copyright © 2004–2017 The Apache Software Foundation. All rights reserved.