[feature] 修改XML代码段中signatureMethod命名

This commit is contained in:
Weasley J
2023-08-01 20:44:28 +08:00
parent 547c1316af
commit 7a015a37ba
2 changed files with 4 additions and 4 deletions
@@ -28,14 +28,14 @@ public enum SignatureAlgorithm {
*/
private final String sigAlgName;
/**
* XML代码段中s:SignatureMethod的算法值
* XML代码段中 ds:SignatureMethod 的算法值
* <p>
* XML Signature Method:
* <pre>
* {@code <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#${algorithmType}"/>}
* </pre>
*/
private final String xmlAlgorithmValue;
private final String signatureMethod;
public static SignatureAlgorithm getSignatureAlgorithmSigAlgName(String sigAlgName) {
return Arrays.stream(values())
@@ -214,8 +214,8 @@ public final class SignatureHandler {
CertificateHandler certificateHandler = SpringUtil.getBean(CertificateHandler.class);
SignatureAlgorithmProperties algorithmProperties = SpringUtil.getBean(SignatureAlgorithmProperties.class);
if (null != algorithmProperties.getAlgorithm()) {
return algorithmProperties.getAlgorithm().getXmlAlgorithmValue();
return algorithmProperties.getAlgorithm().getSignatureMethod();
}
return certificateHandler.getAlgorithm().getXmlAlgorithmValue();
return certificateHandler.getAlgorithm().getSignatureMethod();
}
}