Search in sources :

Example 1 with StsClaimField

use of org.codice.ddf.admin.security.common.fields.sts.StsClaimField 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;
}
Also used : ListFieldImpl(org.codice.ddf.admin.common.fields.base.ListFieldImpl) StsServiceProperties(org.codice.ddf.admin.security.common.services.StsServiceProperties) StsClaimField(org.codice.ddf.admin.security.common.fields.sts.StsClaimField)

Aggregations

ListFieldImpl (org.codice.ddf.admin.common.fields.base.ListFieldImpl)1 StsClaimField (org.codice.ddf.admin.security.common.fields.sts.StsClaimField)1 StsServiceProperties (org.codice.ddf.admin.security.common.services.StsServiceProperties)1