use of org.codice.ddf.admin.security.common.services.StsServiceProperties in project admin-console-beta by connexta.
the class GetStsClaimsFunctionField method performFunction.
@Override
public ListFieldImpl<StsClaimField> performFunction() {
List<String> supportedClaims = new StsServiceProperties().getConfiguredStsClaims(configuratorFactory);
ListFieldImpl<StsClaimField> claims = new ListFieldImpl<>(StsClaimField.class);
supportedClaims.stream().forEach(claim -> {
StsClaimField claimField = new StsClaimField();
claimField.setValue(claim);
claims.add(claimField);
});
return claims;
}
Aggregations