parameters.setStsProperties(stsProperties);
parameters.setEncryptionProperties(new EncryptionProperties());
ClaimsManager claimsManager = new ClaimsManager();
ClaimsHandler claimsHandler = new CustomClaimsHandler();
claimsManager.setClaimHandlers(Collections.singletonList(claimsHandler));
parameters.setClaimsManager(claimsManager);
RequestClaimCollection claims = createClaims();
parameters.setRequestedClaims(claims);