本文整理了Java中org.apache.ws.security.message.WSSecSignature.getBSTTokenId()
方法的一些代码示例,展示了WSSecSignature.getBSTTokenId()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WSSecSignature.getBSTTokenId()
方法的具体详情如下:
包路径:org.apache.ws.security.message.WSSecSignature
类名称:WSSecSignature
方法名:getBSTTokenId
[英]Get the id of the BST generated during prepare()
.
[中]获取prepare()
期间生成的BST的id。
代码示例来源:origin: org.apache.rampart/rampart-core
/**
* @param tokenMap
* @param sigParts
* @throws RampartException
*/
protected List<WSEncryptionPart> addSignatureParts(HashMap tokenMap, List<WSEncryptionPart> sigParts)
throws RampartException {
Set entrySet = tokenMap.entrySet();
for (Object anEntrySet : entrySet) {
Object tempTok = ((Entry) anEntrySet).getValue();
WSEncryptionPart part = null;
if (tempTok instanceof org.apache.rahas.Token) {
part = new WSEncryptionPart(
((org.apache.rahas.Token) tempTok).getId());
} else if (tempTok instanceof WSSecSignature) {
WSSecSignature tempSig = (WSSecSignature) tempTok;
if (tempSig.getBSTTokenId() != null) {
part = new WSEncryptionPart(tempSig.getBSTTokenId());
}
} else {
throw new RampartException("UnsupportedTokenInSupportingToken");
}
sigParts.add(part);
}
return sigParts;
}
代码示例来源:origin: org.apache.rampart/rampart-core
WSSecSignature sig = (WSSecSignature) tempTok;
if (rmd.getPolicyData().isTokenProtection() &&
sig.getBSTTokenId() != null) {
sigParts.add(new WSEncryptionPart(sig.getBSTTokenId()));
代码示例来源:origin: org.apache.rampart/rampart-core
if (rmd.getPolicyData().isTokenProtection() && supportingSig.getBSTTokenId() != null) {
supportingSigParts.add(new WSEncryptionPart(supportingSig.getBSTTokenId()));
代码示例来源:origin: be.e_contract.mycarenet/mycarenet-ehealth-saml-sts
sign.setKeyIdentifierType(WSConstants.BST_DIRECT_REFERENCE);
sign.prepare(soapPart, crypto, wsSecHeader);
String bstId = sign.getBSTTokenId();
sign.appendBSTElementToHeader(wsSecHeader);
Vector<WSEncryptionPart> signParts = new Vector<>();
代码示例来源:origin: org.apache.rampart/rampart-core
this.encryptedTokensIdList.add(sig.getBSTTokenId());
代码示例来源:origin: org.apache.rampart/rampart-core
sigParts.add(new WSEncryptionPart(sig.getBSTTokenId()));
代码示例来源:origin: org.apache.rampart/rampart-core
&& sig.getBSTTokenId() != null) {
sigParts.add(new WSEncryptionPart(sig.getBSTTokenId()));
内容来源于网络,如有侵权,请联系作者删除!