Package org.apache.camel.component.xmlsecurity.api

Examples of org.apache.camel.component.xmlsecurity.api.XmlSignatureInvalidException


                goon = handleSignatureValidationFailed(valContext, signature);
            }
            if (goon) {
                LOG.debug("XML signature {} verified", i + 1);
            } else {
                throw new XmlSignatureInvalidException("XML signature validation failed");
            }
            collectedObjects.addAll((List<XMLObject>) signature.getObjects());
            collectedReferences.addAll((List<Reference>) signature.getSignedInfo().getReferences());
        }
        map2Message(collectedReferences, collectedObjects, out, doc);
View Full Code Here


        }
        if (goon) {
            LOG.debug("XML signature verified");
            map2Message(signature, out, doc);
        } else {
            throw new XmlSignatureInvalidException("");
        }
    }
View Full Code Here

    @Override
    public void checkBeforeCoreValidation(Input input) throws Exception {

        if (!"Signature".equals(input.getMessageBodyDocument().getDocumentElement().getLocalName())) {
            throw new XmlSignatureInvalidException(
                "XML signature is not enveloping. Only enveloping XML signatures are allowed.");
        }
    }
View Full Code Here

                goon = handleSignatureValidationFailed(valContext, signature);
            }
            if (goon) {
                LOG.debug("XML signature {} verified", i + 1);
            } else {
                throw new XmlSignatureInvalidException("XML signature validation failed");
            }
            collectedObjects.addAll((List<XMLObject>) signature.getObjects());
            collectedReferences.addAll((List<Reference>) signature.getSignedInfo().getReferences());
        }
        map2Message(collectedReferences, collectedObjects, out, doc);
View Full Code Here

        }
        if (goon) {
            LOG.debug("XML signature verified");
            map2Message(signature, out, doc);
        } else {
            throw new XmlSignatureInvalidException("");
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.camel.component.xmlsecurity.api.XmlSignatureInvalidException

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.