コード例 #1
0
 private void verifyValueValid(ConfigurationKey key, String value, boolean isSamlSP) {
   if (isNullValue(value)
       && (key.isMandatory() || isMandatoryAttributeInSamlSPMode(isSamlSP, key.getKeyName()))) {
     if (isMandatoryFallBack(key.getKeyName())) {
       value = key.getFallBackValue();
     } else {
       throw new RuntimeException(
           "Mandatory attribute " + key.getKeyName() + " can not be set a null value");
     }
   }
 }