本文整理了Java中org.apache.ws.security.message.WSSecSignature.setSignatureAlgorithm()
方法的一些代码示例,展示了WSSecSignature.setSignatureAlgorithm()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WSSecSignature.setSignatureAlgorithm()
方法的具体详情如下:
包路径:org.apache.ws.security.message.WSSecSignature
类名称:WSSecSignature
方法名:setSignatureAlgorithm
[英]Set the name (uri) of the signature encryption algorithm to use. If the algorithm is not set then an automatic detection of the signature algorithm to use is performed during the prepare()
method. Refer to WSConstants which algorithms are supported.
[中]设置要使用的签名加密算法的名称(uri)。如果未设置算法,则在prepare()
方法期间自动检测要使用的签名算法。请参阅支持哪些算法。
代码示例来源:origin: be.e_contract.mycarenet/mycarenet-ehealth-common
wsSecSignature.setSignatureAlgorithm(WSConstants.RSA);
wsSecSignature.setKeyIdentifierType(WSConstants.CUSTOM_KEY_IDENTIFIER);
wsSecSignature
代码示例来源:origin: org.apache.rampart/rampart-core
sig.setSignatureAlgorithm(algorithmSuite.getAsymmetricSignature());
sig.setSigCanonicalization(algorithmSuite.getInclusiveC14n());
sig.setDigestAlgo(algorithmSuite.getDigest());
代码示例来源:origin: CyberSource/cybersource-sdk-java
sign.setSignatureAlgorithm(SIGNATURE_ALGORITHM);
sign.setKeyIdentifierType(WSConstants.BST_DIRECT_REFERENCE);
sign.setUseSingleCertificate(true);
代码示例来源:origin: org.apache.ws.security/wss4j
sign.setSignatureAlgorithm(reqData.getSigAlgorithm());
} else {
sign.setSignatureAlgorithm(WSConstants.HMAC_SHA1);
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.wss4j
wsSign.setSignatureAlgorithm(reqData.getSigAlgorithm());
代码示例来源:origin: org.apache.rampart/rampart-core
sig.setCustomTokenValueType(RampartUtil.getSAML10AssertionNamespace());
sig.setSecretKey(tok.getSecret());
sig.setSignatureAlgorithm(algorithmSuite.getAsymmetricSignature());
sig.setSignatureAlgorithm(algorithmSuite.getSymmetricSignature());
sig.setKeyIdentifierType(WSConstants.CUSTOM_SYMM_SIGNING);
sig.prepare(rmd.getDocument(), RampartUtil.getSignatureCrypto(rpd
代码示例来源:origin: org.apache.ws.security/wss4j
wsSign.setSignatureAlgorithm(reqData.getSigAlgorithm());
代码示例来源:origin: org.apache.rampart/rampart-core
sig.setCustomTokenValueType(RampartUtil.getSAML10AssertionNamespace());
sig.setSecretKey(tok.getSecret());
sig.setSignatureAlgorithm(algorithmSuite.getAsymmetricSignature());
sig.setSignatureAlgorithm(algorithmSuite.getSymmetricSignature());
sig.setKeyIdentifierType(WSConstants.CUSTOM_SYMM_SIGNING);
sig.prepare(rmd.getDocument(), RampartUtil.getSignatureCrypto(rpd
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.wss4j
sign.setSignatureAlgorithm(reqData.getSigAlgorithm());
} else {
sign.setSignatureAlgorithm(WSConstants.HMAC_SHA1);
代码示例来源:origin: org.apache.rampart/rampart-core
sig.setSignatureAlgorithm(algorithmSuite.getAsymmetricSignature()); // TODO what is the correct algorith ? For sure one is redundant
sig.setSignatureAlgorithm(algorithmSuite.getSymmetricSignature());
sig.setDigestAlgo(algorithmSuite.getDigest());
sig.prepare(rmd.getDocument(), RampartUtil.getSignatureCrypto(rpd
内容来源于网络,如有侵权,请联系作者删除!