Examples of RequestClaim


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

        String user = props.getProperty("claimUser");
        Assert.notNull(user, "Property 'claimUser' not configured");

        RequestClaimCollection requestedClaims = createRequestClaimCollection();
        // add unsupported but mandatory claim
        RequestClaim claim = new RequestClaim();
        claim.setClaimType(ClaimTypes.GENDER);
        claim.setOptional(false);
        requestedClaims.add(claim);

        claimsHandler.retrieveClaimValues(new CustomTokenPrincipal(user), requestedClaims, null, 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.