/** * Returns the <code>UsernameToken</code> element. * * 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. * * @return the Username Token element */ public Element getUsernameTokenElement() { return ut.getElement(); } }
/** * Returns the <code>UsernameToken</code> element. * * 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. * * @return the Username Token element */ public Element getUsernameTokenElement() { return ut.getElement(); } }
/** * Appends 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. * * @param secHeader The security header that holds the Signature element. */ public void appendToHeader(WSSecHeader secHeader) { Element secHeaderElement = secHeader.getSecurityHeader(); secHeaderElement.appendChild(ut.getElement()); }
/** * Appends 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. * * @param secHeader The security header that holds the Signature element. */ public void appendToHeader(WSSecHeader secHeader) { Element secHeaderElement = secHeader.getSecurityHeader(); secHeaderElement.appendChild(ut.getElement()); }
/** * 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. * * @param secHeader The security header that holds the Signature element. */ public void prependToHeader(WSSecHeader secHeader) { WSSecurityUtil.prependChildElement(secHeader.getSecurityHeader(), ut.getElement()); }
/** * 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. * * @param secHeader The security header that holds the Signature element. */ public void prependToHeader(WSSecHeader secHeader) { WSSecurityUtil.prependChildElement(secHeader.getSecurityHeader(), ut.getElement()); }
public WSSecurityEngineResult(int act, UsernameToken usernameToken, Principal principal) { put(TAG_ACTION, Integer.valueOf(act)); put(TAG_USERNAME_TOKEN, usernameToken); put(TAG_PRINCIPAL, principal); put(TAG_VALIDATED_TOKEN, Boolean.FALSE); put(TAG_TOKEN_ELEMENT, usernameToken.getElement()); }
public WSSecurityEngineResult(int act, UsernameToken usernameToken, Principal principal) { put(TAG_ACTION, Integer.valueOf(act)); put(TAG_USERNAME_TOKEN, usernameToken); put(TAG_PRINCIPAL, principal); put(TAG_VALIDATED_TOKEN, Boolean.FALSE); put(TAG_TOKEN_ELEMENT, usernameToken.getElement()); }