/** * Returns the BST Token element. * The method can be called any time after <code>prepare()</code>. * @return the BST Token element */ public Element getBinarySecurityTokenElement() { if (bstToken != null) { return bstToken.getElement(); } return null; }
/** * Returns the BST Token element. * The method can be called any time after <code>prepare()</code>. * @return the BST Token element */ public Element getBinarySecurityTokenElement() { if (bstToken != null) { return bstToken.getElement(); } return null; }
/** * @return Returns the BinarySecurityToken element. */ public Element getBinarySecurityTokenElement() { if (bstToken != null) { return bstToken.getElement(); } return null; }
/** * @return Returns the BinarySecurityToken element. */ public Element getBinarySecurityTokenElement() { if (bstToken != null) { return bstToken.getElement(); } return null; }
/** * Append the BinarySecurityToken to the security header. * @param secHeader The security header */ public void appendBSTElementToHeader(WSSecHeader secHeader) { if (bstToken != null && !bstAddedToSecurityHeader) { Element secHeaderElement = secHeader.getSecurityHeader(); secHeaderElement.appendChild(bstToken.getElement()); bstAddedToSecurityHeader = true; } }
/** * Append the BinarySecurityToken to the security header. * @param secHeader The security header */ public void appendBSTElementToHeader(WSSecHeader secHeader) { if (bstToken != null && !bstAddedToSecurityHeader) { Element secHeaderElement = secHeader.getSecurityHeader(); secHeaderElement.appendChild(bstToken.getElement()); bstAddedToSecurityHeader = true; } }
/** * Append 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. * * @param secHeader The security header that holds the BST element. */ public void appendBSTElementToHeader(WSSecHeader secHeader) { if (bstToken != null) { Element secHeaderElement = secHeader.getSecurityHeader(); secHeaderElement.appendChild(bstToken.getElement()); } bstToken = null; }
/** * Append 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. * * @param secHeader The security header that holds the BST element. */ public void appendBSTElementToHeader(WSSecHeader secHeader) { if (bstToken != null) { Element secHeaderElement = secHeader.getSecurityHeader(); secHeaderElement.appendChild(bstToken.getElement()); } bstToken = null; }
/** * 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. * * @param secHeader The security header */ public void prependBSTElementToHeader(WSSecHeader secHeader) { if (bstToken != null && !bstAddedToSecurityHeader) { WSSecurityUtil.prependChildElement(secHeader.getSecurityHeader(), bstToken.getElement()); bstAddedToSecurityHeader = true; } }
/** * 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. * * @param secHeader The security header that holds the BST element. */ public void prependBSTElementToHeader(WSSecHeader secHeader) { if (bstToken != null) { WSSecurityUtil.prependChildElement( secHeader.getSecurityHeader(), bstToken.getElement() ); } bstToken = null; }
/** * 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. * * @param secHeader The security header */ public void prependBSTElementToHeader(WSSecHeader secHeader) { if (bstToken != null && !bstAddedToSecurityHeader) { WSSecurityUtil.prependChildElement(secHeader.getSecurityHeader(), bstToken.getElement()); bstAddedToSecurityHeader = true; } }
/** * 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. * * @param secHeader The security header that holds the BST element. */ public void prependBSTElementToHeader(WSSecHeader secHeader) { if (bstToken != null) { WSSecurityUtil.prependChildElement( secHeader.getSecurityHeader(), bstToken.getElement() ); } bstToken = null; }
public WSSecurityEngineResult(int act, BinarySecurity token, X509Certificate[] certs) { put(TAG_ACTION, Integer.valueOf(act)); put(TAG_BINARY_SECURITY_TOKEN, token); put(TAG_X509_CERTIFICATES, certs); if (certs != null) { put(TAG_X509_CERTIFICATE, certs[0]); } put(TAG_VALIDATED_TOKEN, Boolean.FALSE); put(TAG_TOKEN_ELEMENT, token.getElement()); }
public WSSecurityEngineResult(int act, BinarySecurity token, X509Certificate[] certs) { put(TAG_ACTION, Integer.valueOf(act)); put(TAG_BINARY_SECURITY_TOKEN, token); put(TAG_X509_CERTIFICATES, certs); if (certs != null) { put(TAG_X509_CERTIFICATE, certs[0]); } put(TAG_VALIDATED_TOKEN, Boolean.FALSE); put(TAG_TOKEN_ELEMENT, token.getElement()); }
secRef.setReference(ref); bstToken.setID(certUri); wsDocInfo.addTokenElement(bstToken.getElement(), false); break;
secRef.setReference(ref); bstToken.setID(certUri); wsDocInfo.addTokenElement(bstToken.getElement(), false); break;
((X509Security) bstToken).setX509Certificate(certs[0]); bstToken.setID(certUri); wsDocInfo.addTokenElement(bstToken.getElement(), false); ref.setValueType(bstToken.getValueType()); secRef.setReference(ref);
((X509Security) bstToken).setX509Certificate(certs[0]); bstToken.setID(certUri); wsDocInfo.addTokenElement(bstToken.getElement(), false); ref.setValueType(bstToken.getValueType()); secRef.setReference(ref);