Package org.apache.wss4j.policy.model

Examples of org.apache.wss4j.policy.model.RecipientSignatureToken


    public Assertion build(Element element, AssertionBuilderFactory factory) throws IllegalArgumentException {

        final SPConstants.SPVersion spVersion = SPConstants.SPVersion.getSPVersion(element.getNamespaceURI());
        final Element nestedPolicyElement = SPUtils.getFirstPolicyChildElement(element);
        final Policy nestedPolicy = nestedPolicyElement != null ? factory.getPolicyEngine().getPolicy(nestedPolicyElement) : new Policy();
        RecipientSignatureToken recipientSignatureToken = new RecipientSignatureToken(
                spVersion,
                nestedPolicy
        );
        recipientSignatureToken.setOptional(SPUtils.isOptional(element));
        recipientSignatureToken.setIgnorable(SPUtils.isIgnorable(element));
        return recipientSignatureToken;
    }
View Full Code Here

TOP

Related Classes of org.apache.wss4j.policy.model.RecipientSignatureToken

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.