- java.lang.Object
-
- io.helidon.common.crypto.HashDigest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HashDigest.Builder
Builder of theHashDigest
.
-
Field Summary
Fields Modifier and Type Field Description static String
ALGORITHM_MD2
Deprecated.It is strongly recommended not to use this algorithm as stated here RFC6149 - Section 6.static String
ALGORITHM_MD5
Deprecated.It is strongly recommended not to use this algorithm as stated here RFC6151 - Section 2.1.static String
ALGORITHM_SHA_1
Deprecated.SHA-1 is unsafe to use alone due to its vulnerability to collision attacksstatic String
ALGORITHM_SHA_224
Digest SHA-224 algorithm.static String
ALGORITHM_SHA_256
Digest SHA-256 algorithm.static String
ALGORITHM_SHA_384
Digest SHA-384 algorithm.static String
ALGORITHM_SHA_512_224
Digest SHA-512/224 algorithm.static String
ALGORITHM_SHA_512_256
Digest SHA-512/256 algorithm.static String
ALGORITHM_SHA3_224
Digest SHA3-224 algorithm.static String
ALGORITHM_SHA3_256
Digest SHA3-256 algorithm.static String
ALGORITHM_SHA3_384
Digest SHA3-384 algorithm.static String
ALGORITHM_SHA3_512
Digest SHA3-512 algorithm.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HashDigest.Builder
builder()
Create new builder.static HashDigest
create(String algorithm)
Create a new instance of this class based on selected algorithm.Base64Value
digest(Base64Value value)
Create digest of the value.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.helidon.common.crypto.Digest
digestString, verify, verifyString
-
-
-
-
Field Detail
-
ALGORITHM_MD2
@Deprecated public static final String 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:
- Constant Field Values
-
ALGORITHM_MD5
@Deprecated public static final String 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:
- Constant Field Values
-
ALGORITHM_SHA_1
@Deprecated public static final String 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:
- Constant Field Values
-
ALGORITHM_SHA_224
public static final String ALGORITHM_SHA_224
Digest SHA-224 algorithm.
Value is: "SHA-224".- See Also:
- Constant Field Values
-
ALGORITHM_SHA_256
public static final String ALGORITHM_SHA_256
Digest SHA-256 algorithm.
Value is: "SHA-256".- See Also:
- Constant Field Values
-
ALGORITHM_SHA_384
public static final String ALGORITHM_SHA_384
Digest SHA-384 algorithm.
Value is: "SHA-384".- See Also:
- Constant Field Values
-
ALGORITHM_SHA_512_224
public static final String ALGORITHM_SHA_512_224
Digest SHA-512/224 algorithm.
Value is: "SHA-512/224".- See Also:
- Constant Field Values
-
ALGORITHM_SHA_512_256
public static final String ALGORITHM_SHA_512_256
Digest SHA-512/256 algorithm.
Value is: "SHA-512/256".- See Also:
- Constant Field Values
-
ALGORITHM_SHA3_224
public static final String ALGORITHM_SHA3_224
Digest SHA3-224 algorithm.
Value is: "SHA3-224".- See Also:
- Constant Field Values
-
ALGORITHM_SHA3_256
public static final String ALGORITHM_SHA3_256
Digest SHA3-256 algorithm.
Value is: "SHA3-256".- See Also:
- Constant Field Values
-
ALGORITHM_SHA3_384
public static final String ALGORITHM_SHA3_384
Digest SHA3-384 algorithm.
Value is: "SHA3-384".- See Also:
- Constant Field Values
-
ALGORITHM_SHA3_512
public static final String ALGORITHM_SHA3_512
Digest SHA3-512 algorithm.
Value is: "SHA3-512".- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public static HashDigest create(String algorithm)
Create a new instance of this class based on selected algorithm.- Parameters:
algorithm
- algorithm to be used- Returns:
- new instance
-
builder
public static HashDigest.Builder builder()
Create new builder.- Returns:
- new builder
-
digest
public Base64Value digest(Base64Value value)
Description copied from interface:Digest
Create digest of the value.
-
-