| Package | Description |
|---|---|
| com.peterphi.std.crypto.digest | |
| com.peterphi.std.crypto.digest.impl |
| Modifier and Type | Field and Description |
|---|---|
static java.util.Comparator<DigestAlgorithm> |
DigestAlgorithm.COMPARE
The comparator to use when comparing algorithms ignoring their relative cryptographic security
|
static java.util.Comparator<DigestAlgorithm> |
DigestAlgorithm.COMPARE_PREFER_SECURE
The comparator to use when comparing algorithms & preferring secure algorithms (will usually be the same as the default
comparator, but preferring algorithms marked cryptographically secure)
|
| Modifier and Type | Method and Description |
|---|---|
static DigestAlgorithm |
DigestAlgorithm.getBest(boolean prioritiseSecure,
DigestAlgorithm... algorithms)
Determines the best algorithm from a list of choices
|
static DigestAlgorithm |
DigestAlgorithm.getBest(boolean prioritiseSecure,
java.lang.Iterable<DigestAlgorithm> algorithms)
Determines the "best" algorithm from a list of choices
|
static DigestAlgorithm |
DigestAlgorithm.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DigestAlgorithm[] |
DigestAlgorithm.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<DigestAlgorithm> |
Digests.getAlgorithms() |
| Modifier and Type | Method and Description |
|---|---|
void |
Digests.addDigest(DigestAlgorithm algorithm,
java.lang.String digest) |
static DigestAlgorithm |
DigestAlgorithm.getBest(boolean prioritiseSecure,
DigestAlgorithm... algorithms)
Determines the best algorithm from a list of choices
|
java.lang.String |
Digests.getDigest(DigestAlgorithm algorithm) |
| Modifier and Type | Method and Description |
|---|---|
static DigestAlgorithm |
DigestAlgorithm.getBest(boolean prioritiseSecure,
java.lang.Iterable<DigestAlgorithm> algorithms)
Determines the "best" algorithm from a list of choices
|
| Constructor and Description |
|---|
DigestVerifier(java.lang.String digest,
DigestAlgorithm algorithm) |
Copyright © 2014. All Rights Reserved.