- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.apache.wss4j.dom.util.WSSecurityUtil.prependChildElement()
方法的一些代码示例,展示了WSSecurityUtil.prependChildElement()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WSSecurityUtil.prependChildElement()
方法的具体详情如下:
包路径:org.apache.wss4j.dom.util.WSSecurityUtil
类名称:WSSecurityUtil
方法名:prependChildElement
[英]prepend a child element
[中]预先添加子元素
代码示例来源:origin: org.apache.wss4j/wss4j-ws-security-dom
public void setSecurityTokenReference(Element elem) {
elementSecurityTokenReference = elem;
WSSecurityUtil.prependChildElement(element, elem);
}
代码示例来源:origin: org.apache.wss4j/wss4j-ws-security-dom
public void addAttachmentEncryptedDataElements() {
if (attachmentEncryptedDataElements != null) {
for (int i = 0; i < attachmentEncryptedDataElements.size(); i++) {
Element encryptedData = attachmentEncryptedDataElements.get(i);
Element securityHeaderElement = getSecurityHeader().getSecurityHeaderElement();
WSSecurityUtil.prependChildElement(securityHeaderElement, encryptedData);
}
}
}
代码示例来源:origin: org.apache.wss4j/wss4j-ws-security-dom
public void addAttachmentEncryptedDataElements() {
if (attachmentEncryptedDataElements != null) {
for (int i = 0; i < attachmentEncryptedDataElements.size(); i++) {
Element encryptedData = attachmentEncryptedDataElements.get(i);
Element secHeaderElement = getSecurityHeader().getSecurityHeaderElement();
WSSecurityUtil.prependChildElement(secHeaderElement, encryptedData);
}
}
}
代码示例来源:origin: org.apache.wss4j/wss4j-ws-security-dom
/**
* Prepend the SAML elements to the elements already in the Security header.
*
* The method can be called any time after <code>prepare()</code>. This
* allows to insert the SAML elements at any position in the Security
* header.
*
* This methods first prepends the SAML security reference if mode is
* <code>senderVouches</code>, then the SAML token itself,
*/
public void prependSAMLElementsToHeader() {
Element securityHeaderElement = getSecurityHeader().getSecurityHeaderElement();
if (senderVouches) {
WSSecurityUtil.prependChildElement(securityHeaderElement, secRefSaml.getElement());
}
WSSecurityUtil.prependChildElement(securityHeaderElement, samlToken);
}
代码示例来源:origin: org.apache.wss4j/wss4j-ws-security-dom
/**
* Prepend the EncryptedKey element to the elements already in the Security
* header.
*
* The method can be called any time after <code>prepare()</code>. This
* allows to insert the EncryptedKey element at any position in the Security
* header.
*/
public void prependToHeader() {
Element secHeaderElement = getSecurityHeader().getSecurityHeaderElement();
WSSecurityUtil.prependChildElement(secHeaderElement, encryptedKeyElement);
}
代码示例来源:origin: org.apache.wss4j/wss4j-ws-security-dom
public void prependSCTElementToHeader()
throws WSSecurityException {
Element secHeaderElement = securityHeader.getSecurityHeaderElement();
WSSecurityUtil.prependChildElement(secHeaderElement, sct.getElement());
}
代码示例来源:origin: org.apache.wss4j/wss4j-ws-security-dom
/**
* Sets the security token reference of the derived key token
* This is the reference to the shared secret used in the conversation/context
*
* @param ref Security token reference
*/
public void setSecurityTokenReference(SecurityTokenReference ref) {
elementSecurityTokenReference = ref.getElement();
WSSecurityUtil.prependChildElement(element, ref.getElement());
}
代码示例来源:origin: org.apache.wss4j/wss4j-ws-security-dom
/**
* Adds (prepends) the external Reference element to the Security header.
*
* The reference element <i>must</i> be created by the
* <code>encryptForExternalRef() </code> method. The method prepends the
* reference element in the SecurityHeader.
*
* @param dataRef The external <code>enc:Reference</code> element
*/
public void addExternalRefElement(Element dataRef) {
if (dataRef != null) {
Element secHeaderElement = getSecurityHeader().getSecurityHeaderElement();
WSSecurityUtil.prependChildElement(secHeaderElement, dataRef);
}
}
代码示例来源:origin: org.apache.wss4j/wss4j-ws-security-dom
/**
* Prepend the BinarySecurityToken to the elements already in the Security
* header.
*
* The method can be called any time after <code>prepare()</code>.
* This allows to insert the BST element at any position in the Security
* header.
*/
public void prependBSTElementToHeader() {
if (bstToken != null && !bstAddedToSecurityHeader) {
Element securityHeaderElement = getSecurityHeader().getSecurityHeaderElement();
WSSecurityUtil.prependChildElement(securityHeaderElement, bstToken);
bstAddedToSecurityHeader = true;
}
}
代码示例来源:origin: org.apache.wss4j/wss4j-ws-security-dom
/**
* Prepends the UsernameToken element to the elements already in the
* Security header.
*
* The method can be called any time after <code>prepare()</code>.
* This allows to insert the UsernameToken element at any position in the
* Security header.
*/
public void prependToHeader() {
Element securityHeaderElement = getSecurityHeader().getSecurityHeaderElement();
WSSecurityUtil.prependChildElement(securityHeaderElement, ut.getElement());
}
代码示例来源:origin: org.apache.wss4j/wss4j-ws-security-dom
/**
* Prepends the Timestamp element to the elements already in the Security
* header.
*
* The method can be called any time after <code>prepare()</code>. This
* allows to insert the Timestamp element at any position in the Security
* header.
*/
public void prependToHeader() {
Element securityHeaderElement = getSecurityHeader().getSecurityHeaderElement();
WSSecurityUtil.prependChildElement(securityHeaderElement, ts.getElement());
}
代码示例来源:origin: org.apache.wss4j/wss4j-ws-security-dom
/**
* Prepends the SignatureConfirmation element to the elements already in the
* Security header.
*
* The method can be called any time after <code>prepare()</code>.
* This allows to insert the SignatureConfirmation element at any position in the
* Security header.
*/
public void prependToHeader() {
Element securityHeaderElement = getSecurityHeader().getSecurityHeaderElement();
WSSecurityUtil.prependChildElement(securityHeaderElement, sc.getElement());
}
代码示例来源:origin: org.apache.wss4j/wss4j-ws-security-dom
/**
* Prepend the DerivedKey element to the elements already in the Security
* header.
*
* The method can be called any time after <code>prepare()</code>. This
* allows to insert the DerivedKey element at any position in the Security
* header.
*/
public void prependDKElementToHeader() {
Element securityHeaderElement = getSecurityHeader().getSecurityHeaderElement();
WSSecurityUtil.prependChildElement(securityHeaderElement, dkt.getElement());
}
代码示例来源:origin: org.apache.wss4j/wss4j-ws-security-dom
/**
* Prepend the BinarySecurityToken to the elements already in the Security
* header.
*
* The method can be called any time after <code>prepare()</code>. This
* allows to insert the BST element at any position in the Security header.
*/
public void prependBSTElementToHeader() {
if (bstToken != null && !bstAddedToSecurityHeader) {
Element secHeaderElement = getSecurityHeader().getSecurityHeaderElement();
WSSecurityUtil.prependChildElement(secHeaderElement, bstToken.getElement());
bstAddedToSecurityHeader = true;
}
}
代码示例来源:origin: org.apache.wss4j/wss4j-ws-security-dom
header = prependChildElement(envelope, header);
header = prependChildElement(envelope, header);
foundSecurityHeader = (Element)getDomElement(foundSecurityHeader);
return prependChildElement(header, foundSecurityHeader);
代码示例来源:origin: org.apache.wss4j/wss4j-ws-security-dom
/**
* Prepends the SAML Assertion to the elements already in the
* Security header.
*
* The method can be called any time after <code>prepare()</code>.
* This allows to insert the SAML assertion at any position in the
* Security header.
*
*/
public void prependToHeader() {
try {
Element element = getElement();
if (element != null) {
Element securityHeaderElement = getSecurityHeader().getSecurityHeaderElement();
WSSecurityUtil.prependChildElement(securityHeaderElement, element);
}
} catch (WSSecurityException ex) {
throw new RuntimeException(ex.toString(), ex);
}
}
代码示例来源:origin: org.apache.wss4j/wss4j-ws-security-dom
WSSecurityUtil.prependChildElement(reqData.getSecHeader().getSecurityHeaderElement(), tokenElement);
代码示例来源:origin: org.apache.wss4j/wss4j-ws-security-dom
WSSecurityUtil.prependChildElement(reqData.getSecHeader().getSecurityHeaderElement(), tokenElement);
代码示例来源:origin: org.apache.cxf/cxf-rt-ws-security
bstToken.addWSUNamespace();
bstToken.setID(wssConfig.getIdAllocator().createSecureId("X509-", encCert));
WSSecurityUtil.prependChildElement(
secHeader.getSecurityHeaderElement(), bstToken.getElement()
);
代码示例来源:origin: apache/cxf
bstToken.addWSUNamespace();
bstToken.setID(wssConfig.getIdAllocator().createSecureId("X509-", encCert));
WSSecurityUtil.prependChildElement(
secHeader.getSecurityHeaderElement(), bstToken.getElement()
);
本文整理了Java中org.apache.wss4j.dom.util.WSSecurityUtil.getSecurityHeader()方法的一些代码示例,展示了WSSecurityUtil.ge
本文整理了Java中org.apache.wss4j.dom.util.WSSecurityUtil.findBodyElement()方法的一些代码示例,展示了WSSecurityUtil.find
本文整理了Java中org.apache.wss4j.dom.util.WSSecurityUtil.findWsseSecurityHeaderBlock()方法的一些代码示例,展示了WSSecur
本文整理了Java中org.apache.wss4j.dom.util.WSSecurityUtil.decodeAction()方法的一些代码示例,展示了WSSecurityUtil.decodeA
本文整理了Java中org.apache.wss4j.dom.util.WSSecurityUtil.generateNonce()方法的一些代码示例,展示了WSSecurityUtil.genera
本文整理了Java中org.apache.wss4j.dom.util.WSSecurityUtil.decodeHandlerAction()方法的一些代码示例,展示了WSSecurityUtil.
本文整理了Java中org.apache.wss4j.dom.util.WSSecurityUtil.prependChildElement()方法的一些代码示例,展示了WSSecurityUtil.
我是一名优秀的程序员,十分优秀!