Package org.apache.cxf.sts.claims

Examples of org.apache.cxf.sts.claims.RequestClaim


            );
        }
       
        for (Object claim : claimsType.getAny()) {
            if (claim instanceof Element) {
                RequestClaim requestClaim = parseChildClaimType((Element)claim, dialectAttr, claimsParsers);
                if (requestClaim != null) {
                    requestedClaims.add(requestClaim);
                }
            }
        }
View Full Code Here


            );
        }
       
        Element childClaimType = DOMUtils.getFirstElement(claimsElement);
        while (childClaimType != null) {
            RequestClaim requestClaim = parseChildClaimType(childClaimType, dialectAttr, claimsParsers);
            if (requestClaim != null) {
                requestedClaims.add(requestClaim);
            }
            childClaimType = DOMUtils.getNextElement(childClaimType);
        }
View Full Code Here

            );
        }
       
        for (Object claim : claimsType.getAny()) {
            if (claim instanceof Element) {
                RequestClaim requestClaim = parseChildClaimType((Element)claim, dialectAttr, claimsParsers);
                if (requestClaim != null) {
                    requestedClaims.add(requestClaim);
                }
            }
        }
View Full Code Here

            );
        }
       
        Element childClaimType = DOMUtils.getFirstElement(claimsElement);
        while (childClaimType != null) {
            RequestClaim requestClaim = parseChildClaimType(childClaimType);
            if (requestClaim != null) {
                requestedClaims.add(requestClaim);
            }
            childClaimType = DOMUtils.getNextElement(childClaimType);
        }
View Full Code Here

            );
        }
       
        for (Object claim : claimsType.getAny()) {
            if (claim instanceof Element) {
                RequestClaim requestClaim = parseChildClaimType((Element)claim);
                if (requestClaim != null) {
                    requestedClaims.add(requestClaim);
                }
            }
        }
View Full Code Here

        String claimLocalName = childClaimType.getLocalName();
        String claimNS = childClaimType.getNamespaceURI();
        if ("ClaimType".equals(claimLocalName)) {
            String claimTypeUri = childClaimType.getAttribute("Uri");
            String claimTypeOptional = childClaimType.getAttribute("Optional");
            RequestClaim requestClaim = new RequestClaim();
            try {
                requestClaim.setClaimType(new URI(claimTypeUri));
            } catch (URISyntaxException e) {
                LOG.log(
                    Level.WARNING,
                    "Cannot create URI from the given ClaimType attribute value " + claimTypeUri,
                    e
                );
            }
            requestClaim.setOptional(Boolean.parseBoolean(claimTypeOptional));
            return requestClaim;
        }
       
        LOG.fine("Found unknown element: " + claimLocalName + " " + claimNS);
        return null;
View Full Code Here

            );
        }
       
        Element childClaimType = DOMUtils.getFirstElement(claimsElement);
        while (childClaimType != null) {
            RequestClaim requestClaim = parseChildClaimType(childClaimType, dialectAttr, claimsParsers);
            if (requestClaim != null) {
                requestedClaims.add(requestClaim);
            }
            childClaimType = DOMUtils.getNextElement(childClaimType);
        }
View Full Code Here

            );
        }
       
        for (Object claim : claimsType.getAny()) {
            if (claim instanceof Element) {
                RequestClaim requestClaim = parseChildClaimType((Element)claim, dialectAttr, claimsParsers);
                if (requestClaim != null) {
                    requestedClaims.add(requestClaim);
                }
            }
        }
View Full Code Here

     * Create a set of parsed Claims
     */
    private RequestClaimCollection createClaims() {
        RequestClaimCollection claims = new RequestClaimCollection();
       
        RequestClaim claim = new RequestClaim();
        claim.setClaimType(ClaimTypes.FIRSTNAME);
        claims.add(claim);
       
        claim = new RequestClaim();
        claim.setClaimType(ClaimTypes.LASTNAME);
        claims.add(claim);
       
        claim = new RequestClaim();
        claim.setClaimType(ClaimTypes.EMAILADDRESS);
        claims.add(claim);
       
        return claims;
    }
View Full Code Here

       
        RequestClaimCollection primaryClaims = createClaims();
        providerParameters.setRequestedPrimaryClaims(primaryClaims);
       
        RequestClaimCollection secondaryClaims = new RequestClaimCollection();
        RequestClaim claim = new RequestClaim();
        claim.setClaimType(ClaimTypes.STREETADDRESS);
        secondaryClaims.add(claim);
        providerParameters.setRequestedSecondaryClaims(secondaryClaims);
       
        List<AttributeStatementProvider> customProviderList = new ArrayList<AttributeStatementProvider>();
        customProviderList.add(new CustomAttributeProvider());
View Full Code Here

TOP

Related Classes of org.apache.cxf.sts.claims.RequestClaim

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.