use of org.codice.ddf.internal.admin.configurator.actions.ServiceActions in project admin-console-beta by connexta.
the class SecurityValidation method validateStsClaimsExist.
public static Report validateStsClaimsExist(List<StringField> claimArgs, ServiceActions serviceActions, StsServiceProperties stsServiceProps) {
Report report = Reports.emptyReport();
List<String> supportedClaims = stsServiceProps.getConfiguredStsClaims(serviceActions);
claimArgs.stream().filter(claimArg -> !supportedClaims.contains(claimArg.getValue())).forEach(claimArg -> report.addErrorMessage(invalidClaimType(claimArg.getPath())));
return report;
}
Aggregations