Package ru.i_novus.common.sign.api
Enum SignAlgorithmType
- java.lang.Object
-
- java.lang.Enum<SignAlgorithmType>
-
- ru.i_novus.common.sign.api.SignAlgorithmType
-
- All Implemented Interfaces:
Serializable,Comparable<SignAlgorithmType>
public enum SignAlgorithmType extends Enum<SignAlgorithmType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ECGOST3410ECGOST3410_2012_256ECGOST3410_2012_512RSA
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SignAlgorithmTypefindByAlgorithmName(String algorithmName)static SignAlgorithmTypefindByCertificate(X509Certificate certificate)static SignAlgorithmTypefindByOid(String oid)List<String>getAvailableParameterSpecificationNames()StringgetBouncyKeyAlgorithmName()StringgetBouncySignatureAlgorithmName()StringgetDigestUri()StringgetDigestUrn()StringgetEncryptionAlgorithmOid()StringgetHashAlgorithmOid()StringgetSignatureAlgorithmName()StringgetSignUri()StringgetSignUrn()static SignAlgorithmTypevalueOf(String name)Returns the enum constant of this type with the specified name.static SignAlgorithmTypevalueOf(PublicKey publicKey)Returns the enum constant of this type with the specified name.static SignAlgorithmType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RSA
public static final SignAlgorithmType RSA
-
ECGOST3410
public static final SignAlgorithmType ECGOST3410
-
ECGOST3410_2012_256
public static final SignAlgorithmType ECGOST3410_2012_256
-
ECGOST3410_2012_512
public static final SignAlgorithmType ECGOST3410_2012_512
-
-
Method Detail
-
values
public static SignAlgorithmType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SignAlgorithmType c : SignAlgorithmType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SignAlgorithmType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
valueOf
public static SignAlgorithmType valueOf(PublicKey publicKey)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
publicKey- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
findByOid
public static SignAlgorithmType findByOid(String oid)
-
findByAlgorithmName
public static SignAlgorithmType findByAlgorithmName(String algorithmName)
-
findByCertificate
public static SignAlgorithmType findByCertificate(X509Certificate certificate)
-
getBouncyKeyAlgorithmName
public String getBouncyKeyAlgorithmName()
-
getBouncySignatureAlgorithmName
public String getBouncySignatureAlgorithmName()
-
getDigestUrn
public String getDigestUrn()
-
getDigestUri
public String getDigestUri()
-
getSignUrn
public String getSignUrn()
-
getSignUri
public String getSignUri()
-
getSignatureAlgorithmName
public String getSignatureAlgorithmName()
-
getAvailableParameterSpecificationNames
public List<String> getAvailableParameterSpecificationNames()
-
getHashAlgorithmOid
public String getHashAlgorithmOid()
-
getEncryptionAlgorithmOid
public String getEncryptionAlgorithmOid()
-
-