code: @SneakyThrows
      protected void handlePolicyAttributes(final AuthenticationResponse response) {
          val attributes = response.getLdapEntry().getAttributes();
          for (val attr : attributes) {
              if (this.attributesToErrorMap.containsKey(attr.getName()) && Boolean.parseBoolean(attr.getStringValue())) {
                  val clazz = this.attributesToErrorMap.get(attr.getName());
                  throw clazz.getDeclaredConstructor().newInstance();
              }
          }
      }
docs: Maps boolean attribute values to their corresponding exception.
  This handles ad-hoc password policies.
  
  @param response the authentication response.