mirror of
https://github.com/Weasley-J/chinaport-data-signature.git
synced 2024-04-21 12:41:53 +00:00
[feature] 修改XML代码段中signatureMethod命名
This commit is contained in:
+2
-2
@@ -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())
|
||||
|
||||
+2
-2
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user