Package org.apache.wss4j.policy.model

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


    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();
        InitiatorEncryptionToken initiatorEncryptionToken = new InitiatorEncryptionToken(
                spVersion,
                nestedPolicy
        );
        initiatorEncryptionToken.setOptional(SPUtils.isOptional(element));
        initiatorEncryptionToken.setIgnorable(SPUtils.isIgnorable(element));
        return initiatorEncryptionToken;
    }
View Full Code Here

TOP

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

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.