public enum SignerAlgorithmEnum extends Enum<SignerAlgorithmEnum>
| Enum Constant and Description |
|---|
SHA1withDSA
1.2.840.113549.1.9.4 OIDs dos algoritmos SHA1 = 1.3.14.3.2.26 SHA256 =
2.16.840.1.101.3.4.2.1 SHA512 = 2.16.840.1.101.3.4.2.3 MD5 =
1.2.840.113549.2.5 DSA = 1.2.840.10040.4.3 RSA = 1.2.840.113549.1.1.1
ECDSA = 1.0.14888.3.0.4
|
SHA1withRSA |
SHA256withECDSA |
SHA256withRSA |
SHA512withECDSA |
SHA512withRSA |
| Modifier and Type | Field and Description |
|---|---|
static SignerAlgorithmEnum |
DEFAULT
Definition of standard algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAlgorithm() |
String |
getAlgorithmCipher() |
String |
getAlgorithmHash() |
String |
getOIDAlgorithmCipher() |
String |
getOIDAlgorithmHash() |
static SignerAlgorithmEnum |
getSignerAlgorithmEnum(String algorithm)
Retrieves an item from the enumeration corresponding to the parameter,
which is the name of the algorithm (eg SHA256withRSA).
|
static SignerAlgorithmEnum |
getSignerOIDAlgorithmHashEnum(String OIDalgorithm)
Retrieves an item from the enumeration corresponding to the parameter,
which is the OID of the algorithm (ex: 2.16.840.1.101.3.4.2.1).
|
static SignerAlgorithmEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SignerAlgorithmEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SignerAlgorithmEnum SHA1withDSA
public static final SignerAlgorithmEnum SHA1withRSA
public static final SignerAlgorithmEnum SHA256withRSA
public static final SignerAlgorithmEnum SHA256withECDSA
public static final SignerAlgorithmEnum SHA512withRSA
public static final SignerAlgorithmEnum SHA512withECDSA
public static SignerAlgorithmEnum DEFAULT
public static SignerAlgorithmEnum[] values()
for (SignerAlgorithmEnum c : SignerAlgorithmEnum.values()) System.out.println(c);
public static SignerAlgorithmEnum 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 getOIDAlgorithmHash()
public String getOIDAlgorithmCipher()
public String getAlgorithm()
public String getAlgorithmHash()
public String getAlgorithmCipher()
public static SignerAlgorithmEnum getSignerAlgorithmEnum(String algorithm)
algorithm - algorithm namepublic static SignerAlgorithmEnum getSignerOIDAlgorithmHashEnum(String OIDalgorithm)
OIDalgorithm - OID String representationCopyright © 2021 SERPRO - Serviço Federal de Processamento de Dados. All rights reserved.