public ClaimCollection retrieveClaimValues(
RequestClaimCollection claims, ClaimsParameters parameters) {
if (claims != null && claims.size() > 0) {
ClaimCollection claimCollection = new ClaimCollection();
for (RequestClaim requestClaim : claims) {
Claim claim = new Claim();
claim.setClaimType(requestClaim.getClaimType());
if (ClaimTypes.FIRSTNAME.equals(requestClaim.getClaimType())) {
if (parameters.getPrincipal().getName().equalsIgnoreCase("alice")) {
claim.setValue("aliceClaim");
} else if (parameters.getPrincipal().getName().equalsIgnoreCase("bob")) {
claim.setValue("bobClaim");
}
}
claimCollection.add(claim);
}
return claimCollection;
}