Package com.sun.xml.ws.security.policy

Examples of com.sun.xml.ws.security.policy.RequestSecurityTokenTemplate


            }
        }
        if (stsProtocol == null){
            stsProtocol = protocol;
        }
        RequestSecurityTokenTemplate rstt = issuedToken.getRequestSecurityTokenTemplate();
        if (rstt != null){
            Claims claims = null;           
            if (protocol.equals(WSTrustVersion.WS_TRUST_13.getNamespaceURI())){
                if(issuedToken.getClaims() != null){
                   claims = getClaims(issuedToken, stsProtocol);
                }
            }else{
                if(rstt.getClaims() != null){
                    claims = getClaims(issuedToken, stsProtocol);
                }               
            }

            if (!protocol.equals(stsProtocol)){
View Full Code Here


             //Element claimsEle = null;
             if (protocol.equals(WSTrustVersion.WS_TRUST_13.getNamespaceURI())){
                Element claimsEle = issuedToken.getClaims().getClaimsAsElement();
                cs = WSTrustElementFactory.newInstance(WSTrustVersion.WS_TRUST_13.getNamespaceURI()).createClaims(claimsEle);
             }else{
                 RequestSecurityTokenTemplate rstt = issuedToken.getRequestSecurityTokenTemplate();
                 Element claimsEle = rstt.getClaims().getClaimsAsElement();
                 cs = WSTrustElementFactory.newInstance(WSTrustVersion.WS_TRUST_10.getNamespaceURI()).createClaims(claimsEle);
             }
             cs = WSTrustElementFactory.newInstance(WSTrustVersion.getInstance(stsWstProtocol)).createClaims(cs);
         } catch (Exception e) {
             throw new WebServiceException(e);
View Full Code Here

TOP

Related Classes of com.sun.xml.ws.security.policy.RequestSecurityTokenTemplate

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.