Package org.apache.ws.secpolicy.model

Examples of org.apache.ws.secpolicy.model.Wss10


            tokenTypeSet = true;
          }
        }
       
        if (!tokenTypeSet) {
          Wss10 wss = rpd.getWss11();
        if (wss == null) {
          wss = rpd.getWss10();
        }
       
        if (wss.isMustSupportRefKeyIdentifier()) {
          secBase.setKeyIdentifierType(WSConstants.SKI_KEY_IDENTIFIER);
        } else if (wss.isMustSupportRefIssuerSerial()) {
          secBase.setKeyIdentifierType(WSConstants.ISSUER_SERIAL);
        } else if (wss instanceof Wss11
            && ((Wss11) wss).isMustSupportRefThumbprint()) {
          secBase.setKeyIdentifierType(WSConstants.THUMBPRINT_IDENTIFIER);
        }
View Full Code Here


public class WSS10Builder implements AssertionBuilder<OMElement> {

    public Assertion build(OMElement element, AssertionBuilderFactory factory)
            throws IllegalArgumentException {
       
        Wss10 wss10 = new Wss10(SPConstants.SP_V11);
       
        Policy policy = PolicyEngine.getPolicy(element.getFirstElement());
        policy = (Policy) policy.normalize(false);
       
        for (Iterator iterator = policy.getAlternatives(); iterator.hasNext();) {
View Full Code Here

public class WSS10Builder implements AssertionBuilder<OMElement> {

    public Assertion build(OMElement element, AssertionBuilderFactory factory)
            throws IllegalArgumentException {
       
        Wss10 wss10 = new Wss10(SPConstants.SP_V12);
       
        Policy policy = PolicyEngine.getPolicy(element.getFirstElement());
        policy = (Policy) policy.normalize(false);
       
        for (Iterator iterator = policy.getAlternatives(); iterator.hasNext();) {
View Full Code Here

public class WSS10Builder implements AssertionBuilder {

    public Assertion build(OMElement element, AssertionBuilderFactory factory)
            throws IllegalArgumentException {
       
        Wss10 wss10 = new Wss10(SPConstants.SP_V11);
       
        Policy policy = PolicyEngine.getPolicy(element.getFirstElement());
        policy = (Policy) policy.normalize(false);
       
        for (Iterator iterator = policy.getAlternatives(); iterator.hasNext();) {
View Full Code Here

public class WSS10Builder implements AssertionBuilder {

    public Assertion build(OMElement element, AssertionBuilderFactory factory)
            throws IllegalArgumentException {
       
        Wss10 wss10 = new Wss10(SPConstants.SP_V12);
       
        Policy policy = PolicyEngine.getPolicy(element.getFirstElement());
        policy = (Policy) policy.normalize(false);
       
        for (Iterator iterator = policy.getAlternatives(); iterator.hasNext();) {
View Full Code Here

public class WSS10Builder implements AssertionBuilder {

    public Assertion build(OMElement element, AssertionBuilderFactory factory)
            throws IllegalArgumentException {
       
        Wss10 wss10 = new Wss10();
       
        Policy policy = PolicyEngine.getPolicy(element.getFirstElement());
        policy = (Policy) policy.normalize(false);
       
        for (Iterator iterator = policy.getAlternatives(); iterator.hasNext();) {
View Full Code Here

        RampartPolicyData rpd = rmd.getPolicyData();
        Document doc = rmd.getDocument();
       
        WSSecEncryptedKey encrKey = new WSSecEncryptedKey();
        if(token.getInclusion().equals(Constants.INCLUDE_NEVER)) {
            Wss10 wss = rpd.getWss11();
            if(wss == null) {
                wss = rpd.getWss10();
            }
            if(wss.isMustSupportRefKeyIdentifier()) {
                encrKey.setKeyIdentifierType(WSConstants.SKI_KEY_IDENTIFIER);
            } else if(wss.isMustSupportRefIssuerSerial()) {
                encrKey.setKeyIdentifierType(WSConstants.ISSUER_SERIAL);
            } else if(wss instanceof Wss11 && ((Wss11)wss).isMustSupportRefThumbprint()) {
                encrKey.setKeyIdentifierType(WSConstants.THUMBPRINT_IDENTIFIER);
            }
        } else {
View Full Code Here

        WSSecSignature sig = new WSSecSignature();
        sig.setWsConfig(rmd.getConfig());
       
        log.debug("Token inclusion: " + token.getInclusion());
        if(token.getInclusion().equals(Constants.INCLUDE_NEVER)) {
            Wss10 wss = rpd.getWss11();
            if(wss == null) {
                wss = rpd.getWss10();
            }
            if(wss.isMustSupportRefKeyIdentifier()) {
                sig.setKeyIdentifierType(WSConstants.SKI_KEY_IDENTIFIER);
            } else  if(wss.isMustSupportRefIssuerSerial()) {
                sig.setKeyIdentifierType(WSConstants.ISSUER_SERIAL);
            } else if(wss instanceof Wss11 && ((Wss11)wss).isMustSupportRefThumbprint()) {
                sig.setKeyIdentifierType(WSConstants.THUMBPRINT_IDENTIFIER);
            }
        } else {
View Full Code Here

                    encr.setWsConfig(rmd.getConfig());
                    encr.setDocument(doc);
                    RampartUtil.setEncryptionUser(rmd, encr);
                    encr.setSymmetricEncAlgorithm(rpd.getAlgorithmSuite().getEncryption());
                    if(encryptionToken.getInclusion().equals(Constants.INCLUDE_NEVER)) {
                        Wss10 wss = rpd.getWss11();
                        if(wss == null) {
                            wss = rpd.getWss10();
                        }
                        if(wss.isMustSupportRefKeyIdentifier()) {
                            encr.setKeyIdentifierType(WSConstants.SKI_KEY_IDENTIFIER);
                        } else if(wss.isMustSupportRefIssuerSerial()) {
                            encr.setKeyIdentifierType(WSConstants.ISSUER_SERIAL);
                        } else if(wss instanceof Wss11 && ((Wss11)wss).isMustSupportRefThumbprint()) {
                            encr.setKeyIdentifierType(WSConstants.THUMBPRINT_IDENTIFIER);
                        }
                    } else {
View Full Code Here

                   
                    WSSecEncrypt encr = new WSSecEncrypt();
                   
                   
                    if(encrToken.getInclusion().equals(Constants.INCLUDE_NEVER)) {
                        Wss10 wss = rpd.getWss11();
                        if(wss == null) {
                            wss = rpd.getWss10();
                        }
                        if(wss.isMustSupportRefKeyIdentifier()) {
                            encr.setKeyIdentifierType(WSConstants.SKI_KEY_IDENTIFIER);
                        } else if(wss.isMustSupportRefIssuerSerial()) {
                            encr.setKeyIdentifierType(WSConstants.ISSUER_SERIAL);
                        } else if(wss instanceof Wss11 && ((Wss11)wss).isMustSupportRefThumbprint()) {
                            encr.setKeyIdentifierType(WSConstants.THUMBPRINT_IDENTIFIER);
                        }
                    } else {
View Full Code Here

TOP

Related Classes of org.apache.ws.secpolicy.model.Wss10

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.