public static enum SignatureAndHashAlgorithm.HashAlgorithm extends Enum<SignatureAndHashAlgorithm.HashAlgorithm>
| Enum Constant and Description |
|---|
INTRINSIC
Do not hash before sign.
|
MD5 |
NONE |
SHA1 |
SHA224 |
SHA256 |
SHA384 |
SHA512 |
| Modifier and Type | Method and Description |
|---|---|
static SignatureAndHashAlgorithm.HashAlgorithm |
getAlgorithmByCode(int code)
Gets an algorithm by its code.
|
int |
getCode()
Gets the code of this algorithm as defined by
RFC 5246, Appendix A.4.1, or
RFC 8422, Section 5.1.3.
|
static SignatureAndHashAlgorithm.HashAlgorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SignatureAndHashAlgorithm.HashAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SignatureAndHashAlgorithm.HashAlgorithm NONE
public static final SignatureAndHashAlgorithm.HashAlgorithm MD5
public static final SignatureAndHashAlgorithm.HashAlgorithm SHA1
public static final SignatureAndHashAlgorithm.HashAlgorithm SHA224
public static final SignatureAndHashAlgorithm.HashAlgorithm SHA256
public static final SignatureAndHashAlgorithm.HashAlgorithm SHA384
public static final SignatureAndHashAlgorithm.HashAlgorithm SHA512
public static final SignatureAndHashAlgorithm.HashAlgorithm INTRINSIC
public static SignatureAndHashAlgorithm.HashAlgorithm[] values()
for (SignatureAndHashAlgorithm.HashAlgorithm c : SignatureAndHashAlgorithm.HashAlgorithm.values()) System.out.println(c);
public static SignatureAndHashAlgorithm.HashAlgorithm valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static SignatureAndHashAlgorithm.HashAlgorithm getAlgorithmByCode(int code)
code - The algorithm's code.null if no algorithm is defined for the given code by
RFC 5246, Appendix A.4.1, or
RFC 8422, Section 5.1.3.public int getCode()
Copyright © 2023 Eclipse Foundation. All rights reserved.