Class HashDigest
java.lang.Object
io.helidon.common.crypto.HashDigest
- All Implemented Interfaces:
Digest
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.It is strongly recommended not to use this algorithm as stated here RFC6149 - Section 6.static final StringDeprecated.It is strongly recommended not to use this algorithm as stated here RFC6151 - Section 2.1.static final StringDeprecated.SHA-1 is unsafe to use alone due to its vulnerability to collision attacksstatic final StringDigest SHA-224 algorithm.static final StringDigest SHA-256 algorithm.static final StringDigest SHA-384 algorithm.static final StringDigest SHA-512/224 algorithm.static final StringDigest SHA-512/256 algorithm.static final StringDigest SHA3-224 algorithm.static final StringDigest SHA3-256 algorithm.static final StringDigest SHA3-384 algorithm.static final StringDigest SHA3-512 algorithm. -
Method Summary
Modifier and TypeMethodDescriptionstatic HashDigest.Builderbuilder()Create new builder.static HashDigestCreate a new instance of this class based on selected algorithm.digest(Base64Value value) Create digest of the value.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Digest
digestString, verify, verifyStringModifier and TypeMethodDescriptiondefault StringdigestString(Base64Value value) Create digest of the value and return as String format.default booleanverify(Base64Value toVerify, Base64Value digestToVerify) Verify the digest of the value against the provided digest.default booleanverifyString(Base64Value toVerify, String digestToVerify) Verify the digest of the value against the provided digest in String format.
-
Field Details
-
ALGORITHM_MD2
Deprecated.It is strongly recommended not to use this algorithm as stated here RFC6149 - Section 6.Digest MD2 algorithm.
Value is: "MD2".- See Also:
-
ALGORITHM_MD5
Deprecated.It is strongly recommended not to use this algorithm as stated here RFC6151 - Section 2.1.Digest MD5 algorithm.
Value is: "MD5".- See Also:
-
ALGORITHM_SHA_1
Deprecated.SHA-1 is unsafe to use alone due to its vulnerability to collision attacksDigest SHA-1 algorithm.
Value is: "SHA-1".- See Also:
-
ALGORITHM_SHA_224
Digest SHA-224 algorithm.
Value is: "SHA-224".- See Also:
-
ALGORITHM_SHA_256
Digest SHA-256 algorithm.
Value is: "SHA-256".- See Also:
-
ALGORITHM_SHA_384
Digest SHA-384 algorithm.
Value is: "SHA-384".- See Also:
-
ALGORITHM_SHA_512_224
Digest SHA-512/224 algorithm.
Value is: "SHA-512/224".- See Also:
-
ALGORITHM_SHA_512_256
Digest SHA-512/256 algorithm.
Value is: "SHA-512/256".- See Also:
-
ALGORITHM_SHA3_224
Digest SHA3-224 algorithm.
Value is: "SHA3-224".- See Also:
-
ALGORITHM_SHA3_256
Digest SHA3-256 algorithm.
Value is: "SHA3-256".- See Also:
-
ALGORITHM_SHA3_384
Digest SHA3-384 algorithm.
Value is: "SHA3-384".- See Also:
-
ALGORITHM_SHA3_512
Digest SHA3-512 algorithm.
Value is: "SHA3-512".- See Also:
-
-
Method Details
-
create
Create a new instance of this class based on selected algorithm.- Parameters:
algorithm- algorithm to be used- Returns:
- new instance
-
builder
-
digest
Description copied from interface:DigestCreate digest of the value.
-