/** * @deprecated Use encryptForRef(dataRef, references) instead */ public Element encryptForExternalRef(Element dataRef, List<WSEncryptionPart> references) throws WSSecurityException { return encryptForRef(dataRef, references); }
/** * Get the List of inclusive prefixes from the DOM Element argument */ public List<String> getInclusivePrefixes(Element target) { return getInclusivePrefixes(target, true); }
public WSSecSignature(WSSConfig config) { super(config); init(); }
/** * Compute the Signature over the references. The signature element will be * prepended to the security header. * * This method can be called any time after the references were set. See * <code>addReferencesToSign()</code>. * * @param referenceList The list of references to sign * * @throws WSSecurityException */ public void computeSignature( List<javax.xml.crypto.dsig.Reference> referenceList ) throws WSSecurityException { computeSignature(referenceList, true, null); }
private void appendToHeader(WSSecHeader secHeader, Element appendingChild) { // TODO this is bit dubious, before migration code was like "dkSig.appendSigToHeader(rmd.getSecHeader())" // but WSS4J has remove append methods. Need to find why ? Element secHeaderElement = secHeader.getSecurityHeader(); secHeaderElement.appendChild(appendingChild); }
/** * Compute the Signature over the references. * * After references are set this method computes the Signature for them. * This method can be called any time after the references were set. See * <code>addReferencesToSign()</code>. * * @throws WSSecurityException */ public void computeSignature( List<javax.xml.crypto.dsig.Reference> referenceList ) throws WSSecurityException { computeSignature(referenceList, true, null); }
public WSSecDKSign() { super(); init(); }
/** * Compute the Signature over the references. The signature element will be * prepended to the security header. * * This method can be called any time after the references were set. See * <code>addReferencesToSign()</code>. * * @param referenceList The list of references to sign * * @throws WSSecurityException */ public void computeSignature( List<javax.xml.crypto.dsig.Reference> referenceList ) throws WSSecurityException { computeSignature(referenceList, true, null); }
/** * 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 * @param secHeader The security header. */ public void addExternalRefElement(Element dataRef, WSSecHeader secHeader) { WSSecurityUtil.prependChildElement(secHeader.getSecurityHeader(), dataRef); }
/** * Compute the Signature over the references. * * After references are set this method computes the Signature for them. * This method can be called any time after the references were set. See * <code>addReferencesToSign()</code>. * * @throws WSSecurityException */ public void computeSignature( List<javax.xml.crypto.dsig.Reference> referenceList ) throws WSSecurityException { computeSignature(referenceList, true, null); }
/** * @deprecated Use encryptForRef(dataRef, references) instead */ public Element encryptForInternalRef(Element dataRef, List<WSEncryptionPart> references) throws WSSecurityException { return encryptForRef(dataRef, references); }
public WSSecSignature() { super(); init(); }
public WSSecDKSign() { super(); init(); }
/** * Get the List of inclusive prefixes from the DOM Element argument */ public List<String> getInclusivePrefixes(Element target) { return getInclusivePrefixes(target, true); }
/** * @deprecated Use encryptForRef(dataRef, references) instead */ public Element encryptForExternalRef(Element dataRef, List<WSEncryptionPart> references) throws WSSecurityException { return encryptForRef(dataRef, references); }
public WSSecSignature(WSSConfig config) { super(config); init(); }
public WSSecDKSign(WSSConfig config) { super(config); init(); }
/** * @deprecated Use encryptForRef(dataRef, references) instead */ public Element encryptForInternalRef(Element dataRef, List<WSEncryptionPart> references) throws WSSecurityException { return encryptForRef(dataRef, references); }
public WSSecSignature() { super(); init(); }
public WSSecDKSign(WSSConfig config) { super(config); init(); }