public static enum SignedData.SigningAlgorithm extends Enum<SignedData.SigningAlgorithm>
The algorithm to be used for signing the message or message digest For RSA keys, there are two supported Signature Schemes: PKCS1 and PSS along with different Hashing algorithms. For ECDSA keys, ECDSA is the supported signature scheme with different hashing algorithms. In case of passing digest for signing, make sure the same hashing algorithm is specified as used for created for digest.
| Enum Constant and Description |
|---|
EcdsaSha256 |
EcdsaSha384 |
EcdsaSha512 |
Sha224RsaPkcs1V15 |
Sha224RsaPkcsPss |
Sha256RsaPkcs1V15 |
Sha256RsaPkcsPss |
Sha384RsaPkcs1V15 |
Sha384RsaPkcsPss |
Sha512RsaPkcs1V15 |
Sha512RsaPkcsPss |
UnknownEnumValue
This value is used if a service returns a value for this enum that is not recognized by this
version of the SDK.
|
| Modifier and Type | Method and Description |
|---|---|
static SignedData.SigningAlgorithm |
create(String key) |
String |
getValue() |
static SignedData.SigningAlgorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SignedData.SigningAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SignedData.SigningAlgorithm Sha224RsaPkcsPss
public static final SignedData.SigningAlgorithm Sha256RsaPkcsPss
public static final SignedData.SigningAlgorithm Sha384RsaPkcsPss
public static final SignedData.SigningAlgorithm Sha512RsaPkcsPss
public static final SignedData.SigningAlgorithm Sha224RsaPkcs1V15
public static final SignedData.SigningAlgorithm Sha256RsaPkcs1V15
public static final SignedData.SigningAlgorithm Sha384RsaPkcs1V15
public static final SignedData.SigningAlgorithm Sha512RsaPkcs1V15
public static final SignedData.SigningAlgorithm EcdsaSha256
public static final SignedData.SigningAlgorithm EcdsaSha384
public static final SignedData.SigningAlgorithm EcdsaSha512
public static final SignedData.SigningAlgorithm UnknownEnumValue
public static SignedData.SigningAlgorithm[] values()
for (SignedData.SigningAlgorithm c : SignedData.SigningAlgorithm.values()) System.out.println(c);
public static SignedData.SigningAlgorithm 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 String getValue()
public static SignedData.SigningAlgorithm create(String key)
Copyright © 2016–2021. All rights reserved.