Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,7 @@ private Map<String, String> getAttributeMap(List<Attribute> attributes) {

private void validateMandateSSA (DCRConfiguration dcrConfiguration) throws DCRMClientException {

if (Boolean.FALSE.equals(dcrConfiguration.getAuthenticationRequired()) &&
!Boolean.TRUE.equals(dcrConfiguration.getMandateSSA())) {
// if authenticationRequired is False, mandateSSA should be True.
throw handleClientException(DCRMConstants.DCRConfigErrorMessage.ERROR_CODE_SSA_NOT_MANDATED);
} else if (Boolean.TRUE.equals(dcrConfiguration.getMandateSSA()) &&
if (Boolean.TRUE.equals(dcrConfiguration.getMandateSSA()) &&
StringUtils.isBlank(dcrConfiguration.getSsaJwks())) {
// if mandateSSA is True, ssaJwks should be provided.
throw handleClientException(DCRMConstants.DCRConfigErrorMessage.ERROR_CODE_SSA_JWKS_REQUIRED);
Expand Down