Package org.apache.cxf.rt.security.claims

Examples of org.apache.cxf.rt.security.claims.Claim.addValue()


        providerParameters.setClaimsManager(claimsManager);
       
        ClaimCollection claims = new ClaimCollection();
        Claim claim = new Claim();
        claim.setClaimType(URI.create("http://schemas.xmlsoap.org/ws/2005/05/identity/claims/role"));
        claim.addValue(role);
        claims.add(claim);
       
        providerParameters.setRequestedPrimaryClaims(claims);
       
        TokenProviderResponse providerResponse = samlTokenProvider.createToken(providerParameters);
View Full Code Here


            }
           
            Node valueNode = claimType.getFirstChild();
            if (valueNode != null) {
                if ("Value".equals(valueNode.getLocalName())) {
                    requestClaim.addValue(valueNode.getTextContent().trim());
                } else {
                    LOG.warning("Unsupported child element of ClaimValue element "
                            + valueNode.getLocalName());
                    return null;
                }
View Full Code Here

           
            if ("ClaimValue".equals(claimLocalName)) {
                Node valueNode = claimType.getFirstChild();
                if (valueNode != null) {
                    if ("Value".equals(valueNode.getLocalName())) {
                        requestClaim.addValue(valueNode.getTextContent().trim());
                    } else {
                        LOG.warning("Unsupported child element of ClaimValue element "
                                + valueNode.getLocalName());
                        return null;
                    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.