gpt4 book ai didi

org.apache.ws.security.message.WSSecSignature.prepare()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-22 17:57:05 30 4
gpt4 key购买 nike

本文整理了Java中org.apache.ws.security.message.WSSecSignature.prepare()方法的一些代码示例,展示了WSSecSignature.prepare()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WSSecSignature.prepare()方法的具体详情如下:
包路径:org.apache.ws.security.message.WSSecSignature
类名称:WSSecSignature
方法名:prepare

WSSecSignature.prepare介绍

[英]Initialize a WSSec Signature. The method sets up and initializes a WSSec Signature structure after the relevant information was set. After setup of the references to elements to sign may be added. After all references are added they can be signed. This method does not add the Signature element to the security header. See prependSignatureElementToHeader() method.
[中]初始化WSSec签名。该方法在设置相关信息后设置并初始化WSSec签名结构。设置后,可以添加对要签名的元素的引用。添加所有引用后,可以对其进行签名。此方法不会将签名元素添加到安全标头。参见prependSignatureElementToHeader()方法。

代码示例

代码示例来源:origin: org.apache.ws.security/wss4j

prepare(doc, cr, secHeader);
if (parts == null) {
  parts = new ArrayList<WSEncryptionPart>(1);

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.wss4j

prepare(doc, cr, secHeader);
if (parts == null) {
  parts = new ArrayList<WSEncryptionPart>(1);

代码示例来源:origin: be.e_contract.mycarenet/mycarenet-ehealth-common

wsSecSignature.setCustomTokenId(assertionId);
Crypto crypto = new WSSecurityCrypto(this.privateKey, null);
wsSecSignature.prepare(soapPart, crypto, wsSecHeader);
Vector<WSEncryptionPart> signParts = new Vector<>();
SOAPConstants soapConstants = WSSecurityUtil.getSOAPConstants(soapPart

代码示例来源:origin: be.e_contract.mycarenet/mycarenet-ehealth-saml-sts

WSSecSignature sign = new WSSecSignature(wssConfig);
sign.setKeyIdentifierType(WSConstants.BST_DIRECT_REFERENCE);
sign.prepare(soapPart, crypto, wsSecHeader);
String bstId = sign.getBSTTokenId();
sign.appendBSTElementToHeader(wsSecHeader);

代码示例来源:origin: org.apache.rampart/rampart-core

sig.prepare(rmd.getDocument(), RampartUtil.getSignatureCrypto(rampartConfig, rmd.getCustomClassLoader()), 
      rmd.getSecHeader());
} catch (WSSecurityException e) {

代码示例来源:origin: be.fedict.eid-trust-service/eid-trust-service-xkms2-ws-impl

WSSecSignature sign = new WSSecSignature(wssConfig);
sign.setKeyIdentifierType(WSConstants.BST_DIRECT_REFERENCE);
sign.prepare(soapPart, crypto, wsSecHeader);
sign.appendBSTElementToHeader(wsSecHeader);
Vector<WSEncryptionPart> signParts = new Vector<WSEncryptionPart>();

代码示例来源:origin: org.apache.ws.security/wss4j

wsSign.prepare(doc, reqData.getSigCrypto(), reqData.getSecHeader());

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.wss4j

wsSign.prepare(doc, reqData.getSigCrypto(), reqData.getSecHeader());

代码示例来源:origin: org.apache.rampart/rampart-core

sig.setSignatureAlgorithm(algorithmSuite.getSymmetricSignature());
sig.setKeyIdentifierType(WSConstants.CUSTOM_SYMM_SIGNING);
sig.prepare(rmd.getDocument(), RampartUtil.getSignatureCrypto(rpd
    .getRampartConfig(), rmd.getCustomClassLoader()),
    rmd.getSecHeader());

代码示例来源:origin: org.apache.rampart/rampart-core

sig.setSignatureAlgorithm(algorithmSuite.getSymmetricSignature());
sig.setKeyIdentifierType(WSConstants.CUSTOM_SYMM_SIGNING);
sig.prepare(rmd.getDocument(), RampartUtil.getSignatureCrypto(rpd
    .getRampartConfig(), rmd.getCustomClassLoader()),
    rmd.getSecHeader());

代码示例来源:origin: org.apache.ws.security/wss4j

sign.prepare(doc, null, reqData.getSecHeader());

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.wss4j

sign.prepare(doc, null, reqData.getSecHeader());

代码示例来源:origin: org.apache.rampart/rampart-core

sig.prepare(rmd.getDocument(), RampartUtil.getSignatureCrypto(rpd
    .getRampartConfig(), rmd.getCustomClassLoader()),
    rmd.getSecHeader());

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com