- java.lang.Object
-
- io.helidon.common.crypto.Signature
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSignature.BuilderBuilder of theSignature.
-
Field Summary
Fields Modifier and Type Field Description static StringALGORITHM_MD2_RSADeprecated.It is strongly recommended not to use this algorithm for signature purposes as stated here RFC6149 - Section 6.static StringALGORITHM_MD5_RSADeprecated.It is strongly recommended not to use this algorithm for signature purposes as stated here RFC6149 - Section 2.static StringALGORITHM_NONE_ECDSAElliptic curve digital signature algorithm with no digest algorithm.static StringALGORITHM_NONE_RSARSA signature algorithm with no digest algorithm specified.static StringALGORITHM_SHA1_ECDSAElliptic curve digital signature algorithm with SHA1 digest algorithm.static StringALGORITHM_SHA1_RSARSA signature algorithm with SHA1 digest algorithm.static StringALGORITHM_SHA224_ECDSAElliptic curve digital signature algorithm with SHA224 digest algorithm.static StringALGORITHM_SHA224_RSARSA signature algorithm with SHA224 digest algorithm.static StringALGORITHM_SHA256_ECDSAElliptic curve digital signature algorithm with SHA256 digest algorithm.static StringALGORITHM_SHA256_RSARSA signature algorithm with SHA256 digest algorithm.static StringALGORITHM_SHA384_ECDSAElliptic curve digital signature algorithm with SHA384 digest algorithm.static StringALGORITHM_SHA384_RSARSA signature algorithm with SHA384 digest algorithm.static StringALGORITHM_SHA512_224_RSARSA signature algorithm with SHA512/224 digest algorithm.static StringALGORITHM_SHA512_256_RSARSA signature algorithm with SHA512/256 digest algorithm.static StringALGORITHM_SHA512_ECDSAElliptic curve digital signature algorithm with SHA512 digest algorithm.static StringALGORITHM_SHA512_RSARSA signature algorithm with SHA512 digest algorithm.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Signature.Builderbuilder()Create a new builder.Base64Valuedigest(Base64Value value)Create digest of the value.booleanverify(Base64Value toVerify, Base64Value digestToVerify)Verify the digest of the value against the provided digest.-
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, verifyString
-
-
-
-
Field Detail
-
ALGORITHM_NONE_RSA
public static final String ALGORITHM_NONE_RSA
RSA signature algorithm with no digest algorithm specified.
Value is: "NONEwithRSA".- See Also:
- Constant Field Values
-
ALGORITHM_MD2_RSA
@Deprecated public static final String ALGORITHM_MD2_RSA
Deprecated.It is strongly recommended not to use this algorithm for signature purposes as stated here RFC6149 - Section 6.RSA signature algorithm with MD2 digest algorithm.
Value is: "MD2withRSA".- See Also:
- Constant Field Values
-
ALGORITHM_MD5_RSA
@Deprecated public static final String ALGORITHM_MD5_RSA
Deprecated.It is strongly recommended not to use this algorithm for signature purposes as stated here RFC6149 - Section 2.RSA signature algorithm with MD5 digest algorithm.
Value is: "MD5withRSA".- See Also:
- Constant Field Values
-
ALGORITHM_SHA1_RSA
public static final String ALGORITHM_SHA1_RSA
RSA signature algorithm with SHA1 digest algorithm.
Value is: "SHA1withRSA".- See Also:
- Constant Field Values
-
ALGORITHM_SHA224_RSA
public static final String ALGORITHM_SHA224_RSA
RSA signature algorithm with SHA224 digest algorithm.
Value is: "SHA224withRSA".- See Also:
- Constant Field Values
-
ALGORITHM_SHA256_RSA
public static final String ALGORITHM_SHA256_RSA
RSA signature algorithm with SHA256 digest algorithm.
Value is: "SHA256withRSA".- See Also:
- Constant Field Values
-
ALGORITHM_SHA384_RSA
public static final String ALGORITHM_SHA384_RSA
RSA signature algorithm with SHA384 digest algorithm.
Value is: "SHA384withRSA".- See Also:
- Constant Field Values
-
ALGORITHM_SHA512_RSA
public static final String ALGORITHM_SHA512_RSA
RSA signature algorithm with SHA512 digest algorithm.
Value is: "SHA512withRSA".- See Also:
- Constant Field Values
-
ALGORITHM_SHA512_224_RSA
public static final String ALGORITHM_SHA512_224_RSA
RSA signature algorithm with SHA512/224 digest algorithm.
Value is: "SHA512/224withRSA".- See Also:
- Constant Field Values
-
ALGORITHM_SHA512_256_RSA
public static final String ALGORITHM_SHA512_256_RSA
RSA signature algorithm with SHA512/256 digest algorithm.
Value is: "SHA512/256withRSA".- See Also:
- Constant Field Values
-
ALGORITHM_NONE_ECDSA
public static final String ALGORITHM_NONE_ECDSA
Elliptic curve digital signature algorithm with no digest algorithm.
Value is: "NONEwithECDSA".- See Also:
- Constant Field Values
-
ALGORITHM_SHA1_ECDSA
public static final String ALGORITHM_SHA1_ECDSA
Elliptic curve digital signature algorithm with SHA1 digest algorithm.
Value is: "SHA1withECDSA".- See Also:
- Constant Field Values
-
ALGORITHM_SHA224_ECDSA
public static final String ALGORITHM_SHA224_ECDSA
Elliptic curve digital signature algorithm with SHA224 digest algorithm.
Value is: "SHA224withECDSA".- See Also:
- Constant Field Values
-
ALGORITHM_SHA256_ECDSA
public static final String ALGORITHM_SHA256_ECDSA
Elliptic curve digital signature algorithm with SHA256 digest algorithm.
Value is: "SHA256withECDSA".- See Also:
- Constant Field Values
-
ALGORITHM_SHA384_ECDSA
public static final String ALGORITHM_SHA384_ECDSA
Elliptic curve digital signature algorithm with SHA384 digest algorithm.
Value is: "SHA384withECDSA".- See Also:
- Constant Field Values
-
ALGORITHM_SHA512_ECDSA
public static final String ALGORITHM_SHA512_ECDSA
Elliptic curve digital signature algorithm with SHA512 digest algorithm.
Value is: "SHA512withECDSA".- See Also:
- Constant Field Values
-
-
Method Detail
-
builder
public static Signature.Builder builder()
Create a new builder.- Returns:
- new builder
-
digest
public Base64Value digest(Base64Value value)
Description copied from interface:DigestCreate digest of the value.
-
verify
public boolean verify(Base64Value toVerify, Base64Value digestToVerify)
Description copied from interface:DigestVerify the digest of the value against the provided digest.
-
-