public enum ECryptoAlgorithmSign extends Enum<ECryptoAlgorithmSign> implements ICryptoAlgorithm
ECryptoAlgorithmCrypt for encryption algorithms.| Enum Constant and Description |
|---|
DIGEST_MD5
Same for RFC 3851 and RFC 5751
|
DIGEST_RSA_MD5
Deprecated.
|
DIGEST_RSA_SHA1
Deprecated.
|
DIGEST_SHA_1
New version as of RFC 5751.
|
DIGEST_SHA_224
New version as of RFC 5751.
|
DIGEST_SHA_256
New version as of RFC 5751.
|
DIGEST_SHA_384
New version as of RFC 5751.
|
DIGEST_SHA_512
New version as of RFC 5751.
|
DIGEST_SHA1
Old version as of RFC 3851.
|
DIGEST_SHA256
Old version as of RFC 3851.
|
DIGEST_SHA384
Old version as of RFC 3851.
|
DIGEST_SHA512
Old version as of RFC 3851.
|
RSASSA_PKCS1_V1_5_WITH_SHA3_256 |
| Modifier and Type | Field and Description |
|---|---|
static ECryptoAlgorithmSign |
DEFAULT_RFC_3851 |
static ECryptoAlgorithmSign |
DEFAULT_RFC_5751 |
| Modifier and Type | Method and Description |
|---|---|
static ECryptoAlgorithmSign |
getFromIDOrDefault(String sID,
ECryptoAlgorithmSign eDefault) |
static ECryptoAlgorithmSign |
getFromIDOrNull(String sID) |
static ECryptoAlgorithmSign |
getFromIDOrThrow(String sID) |
String |
getID() |
org.bouncycastle.asn1.ASN1ObjectIdentifier |
getOID() |
String |
getSignAlgorithmName() |
boolean |
isRFC3851Algorithm() |
boolean |
isRFC5751Algorithm() |
static ECryptoAlgorithmSign |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ECryptoAlgorithmSign[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Deprecated @DevelopersNote(value="Use DIGEST_MD5 instead") public static final ECryptoAlgorithmSign DIGEST_RSA_MD5
@Deprecated @DevelopersNote(value="Use DIGEST_SHA1 or DIGEST_SHA_1 instead") public static final ECryptoAlgorithmSign DIGEST_RSA_SHA1
public static final ECryptoAlgorithmSign DIGEST_MD5
@DevelopersNote(value="Use DIGEST_SHA_1 instead") public static final ECryptoAlgorithmSign DIGEST_SHA1
@DevelopersNote(value="Use DIGEST_SHA_256 instead") public static final ECryptoAlgorithmSign DIGEST_SHA256
@DevelopersNote(value="Use DIGEST_SHA_384 instead") public static final ECryptoAlgorithmSign DIGEST_SHA384
@DevelopersNote(value="Use DIGEST_SHA_512 instead") public static final ECryptoAlgorithmSign DIGEST_SHA512
public static final ECryptoAlgorithmSign DIGEST_SHA_1
public static final ECryptoAlgorithmSign DIGEST_SHA_224
public static final ECryptoAlgorithmSign DIGEST_SHA_256
public static final ECryptoAlgorithmSign DIGEST_SHA_384
public static final ECryptoAlgorithmSign DIGEST_SHA_512
public static final ECryptoAlgorithmSign RSASSA_PKCS1_V1_5_WITH_SHA3_256
public static final ECryptoAlgorithmSign DEFAULT_RFC_3851
public static final ECryptoAlgorithmSign DEFAULT_RFC_5751
public static ECryptoAlgorithmSign[] values()
for (ECryptoAlgorithmSign c : ECryptoAlgorithmSign.values()) System.out.println(c);
public static ECryptoAlgorithmSign 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 null@Nonnull @Nonempty public String getID()
getID in interface com.helger.commons.id.IHasID<String>@Nonnull public org.bouncycastle.asn1.ASN1ObjectIdentifier getOID()
getOID in interface ICryptoAlgorithmnull.@Nonnull @Nonempty public String getSignAlgorithmName()
public boolean isRFC3851Algorithm()
true if this is an algorithm defined by RFC 3851,
false otherwise. Please note that some algorithms are
contained in both algorithm sets!public boolean isRFC5751Algorithm()
true if this is an algorithm defined by RFC 5751,
false otherwise. Please note that some algorithms are
contained in both algorithm sets!@Nullable public static ECryptoAlgorithmSign getFromIDOrNull(@Nullable String sID)
@Nonnull public static ECryptoAlgorithmSign getFromIDOrThrow(@Nullable String sID)
@Nullable public static ECryptoAlgorithmSign getFromIDOrDefault(@Nullable String sID, @Nullable ECryptoAlgorithmSign eDefault)
Copyright © 2013–2022 Philip Helger. All rights reserved.