com.siashan.toolkit.crypt.asymmetric.SignAlgorithm Maven / Gradle / Ivy
package com.siashan.toolkit.crypt.asymmetric;
/**
* 签名算法类型
* see: https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#Signature
*
* @author siashan
* @since 1.0.7
*/
public enum SignAlgorithm {
/**
* The RSA signature algorithm
*/
NONEwithRSA("NONEwithRSA"),
/**
* MD2withRSA
*/
MD2withRSA("MD2withRSA"),
/**
* MD5withRSA
*/
MD5withRSA("MD5withRSA"),
/**
* SHA1withRSA
*/
SHA1withRSA("SHA1withRSA"),
/**
* SHA256withRSA
*/
SHA256withRSA("SHA256withRSA"),
/**
* SHA384withRSA
*/
SHA384withRSA("SHA384withRSA"),
/**
* SHA512withRSA
*/
SHA512withRSA("SHA512withRSA"),
// The Digital Signature Algorithm
/**
* NONEwithDSA
*/
NONEwithDSA("NONEwithDSA"),
/**
* SHA1withDSA
*/
SHA1withDSA("SHA1withDSA"),
/**
* NONEwithECDSA
*/
NONEwithECDSA("NONEwithECDSA"),
/**
* SHA1withECDSA
*/
SHA1withECDSA("SHA1withECDSA"),
/**
* SHA256withECDSA
*/
SHA256withECDSA("SHA256withECDSA"),
/**
* SHA384withECDSA
*/
SHA384withECDSA("SHA384withECDSA"),
/**
* SHA512withECDSA
*/
SHA512withECDSA("SHA512withECDSA");
private final String value;
/**
* 构造
*
* @param value 算法字符表示,区分大小写
*/
SignAlgorithm(String value) {
this.value = value;
}
/**
* 获取算法字符串表示,区分大小写
*
* @return 算法字符串表示
*/
public String getValue() {
return this.value;
}
}