Package org.apache.ws.security.message.token

Examples of org.apache.ws.security.message.token.SignatureConfirmation


        // - if there is a signature value and no matching Signature value found: error
        //
        //  If a matching value found: remove from vector of stored signature values
        //
        for (WSSecurityEngineResult result : sigConf) {
            SignatureConfirmation sc =
                (SignatureConfirmation)result.get(
                    WSSecurityEngineResult.TAG_SIGNATURE_CONFIRMATION
                );

            byte[] sigVal = sc.getSignatureValue();
            if (sigVal != null) {
                if (savedSignatures == null || savedSignatures.size() == 0) {
                    //
                    // If there are no stored signature values, and we've received a
                    // SignatureConfirmation element then throw an Exception
View Full Code Here


        // - if there is a signature value and no matching Signature value found: error
        //
        //  If a matching value found: remove from vector of stored signature values
        //
        for (WSSecurityEngineResult result : sigConf) {
            SignatureConfirmation sc =
                (SignatureConfirmation)result.get(
                    WSSecurityEngineResult.TAG_SIGNATURE_CONFIRMATION
                );

            byte[] sigVal = sc.getSignatureValue();
            if (sigVal != null) {
                if (savedSignatures == null || savedSignatures.size() == 0) {
                    //
                    // If there are no stored signature values, and we've received a
                    // SignatureConfirmation element then throw an Exception
View Full Code Here

   * @param doc
   *            The SOAP enevlope as W3C document
   */
  public void prepare(Document doc) {
    document = doc;
        sc = new SignatureConfirmation(doc, signatureValue);;
    String scId = "SigConf-" + sc.hashCode();
    sc.setID(scId);
  }
View Full Code Here

        // - if there is a signature value and no matching Signature value found: error
        //
        //  If a matching value found: remove from vector of stored signature values
        //
        for (WSSecurityEngineResult result : sigConf) {
            SignatureConfirmation sc =
                (SignatureConfirmation)result.get(
                    WSSecurityEngineResult.TAG_SIGNATURE_CONFIRMATION
                );

            byte[] sigVal = sc.getSignatureValue();
            if (sigVal != null) {
                if (savedSignatures == null || savedSignatures.size() == 0) {
                    //
                    // If there are no stored signature values, and we've received a
                    // SignatureConfirmation element then throw an Exception
View Full Code Here

         *  If a matching value found: remove from vector of stored signature values
         */
        for (int i = 0; i < sigConf.size(); i++) {
            WSSecurityEngineResult result =
                (WSSecurityEngineResult)sigConf.get(i);
            SignatureConfirmation sc =
                (SignatureConfirmation)result.get(WSSecurityEngineResult.TAG_SIGNATURE_CONFIRMATION);

            byte[] sigVal = sc.getSignatureValue();
            if (sigVal != null) {
                if (sigv == null || sigv.size() == 0) {
                    // If there are no stored signature values
                    if (sigVal.length != 0) {
                        // If there's no value in the case where there are no
View Full Code Here

   * @param doc
   *            The SOAP enevlope as W3C document
   */
  public void prepare(Document doc) {
    document = doc;
        sc = new SignatureConfirmation(doc, signatureValue);;
    String scId = "SigConf-" + sc.hashCode();
    sc.setID(scId);
  }
View Full Code Here

     *             {@link WSSecSignatureConfirmation#build(Document, byte[], WSSecHeader)}
     */
    public Document build(Document doc, byte[] sigVal) {
        log.debug("Begin add signature confirmation...");
        Element securityHeader = insertSecurityHeader(doc);
        sc = new SignatureConfirmation(doc, sigVal);
        if (id != null) {
            sc.setID(id);
        }
        WSSecurityUtil.prependChildElement(doc, securityHeader,
                sc.getElement(), true);
View Full Code Here

            log.debug("Found SignatureConfirmation list element");
        }
        /*
         * Decode SignatureConfirmation, just store in result
         */
        SignatureConfirmation sigConf = new SignatureConfirmation(
                (Element) elem);
        returnResults.add(0, new WSSecurityEngineResult(WSConstants.SC,
                sigConf));
       
        scId = elem.getAttributeNS(WSConstants.WSU_NS, "Id");
View Full Code Here

     * filed <code>signatureValue</code> must be set
     *
     * @param doc The SOAP envelope as W3C document
     */
    public void prepare(Document doc) {
        sc = new SignatureConfirmation(doc, signatureValue);
        sc.setID(getWsConfig().getIdAllocator().createId("SC-", sc));
    }
View Full Code Here

            log.debug("Found SignatureConfirmation list element");
        }
        //
        // Decode SignatureConfirmation, just store in result
        //
        SignatureConfirmation sigConf = new SignatureConfirmation(elem);
        returnResults.add(
            0,
            new WSSecurityEngineResult(WSConstants.SC, sigConf)
        );
        scId = elem.getAttributeNS(WSConstants.WSU_NS, "Id");
View Full Code Here

TOP

Related Classes of org.apache.ws.security.message.token.SignatureConfirmation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.