| Package | Description |
|---|---|
| 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 | 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 |
ParsableHashFormat.parse(String formatted)
Parses the specified formatted string and returns the corresponding Hash instance.
|
Hash |
Shiro1CryptFormat.parse(String formatted) |
| Modifier and Type | Method and Description |
|---|---|
String |
Shiro1CryptFormat.format(Hash hash) |
String |
HashFormat.format(Hash hash)
Returns a formatted string representing the specified Hash instance.
|
String |
HexFormat.format(Hash hash)
Returns
hash != null ? hash.toHex() : null. |
String |
Base64Format.format(Hash hash)
Returns
hash != null ? hash.toBase64() : null. |
Copyright © 2004–2023 The Apache Software Foundation. All rights reserved.