All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.zalando.riptide.autoconfigure.SslBundleUsageOrCertificatePinningException Maven / Gradle / Ivy

There is a newer version: 4.3.0
Show newest version
package org.zalando.riptide.autoconfigure;

import org.springframework.core.NestedRuntimeException;

public class SslBundleUsageOrCertificatePinningException extends NestedRuntimeException {

  private final String clientId;

  public SslBundleUsageOrCertificatePinningException(final String clientId) {
    super(createMessage(clientId));
    this.clientId = clientId;
  }

  public SslBundleUsageOrCertificatePinningException(String clientId, String msg) {
    super(msg);
    this.clientId = clientId;
  }

  public SslBundleUsageOrCertificatePinningException(String clientId, String msg, Throwable cause) {
    super(msg, cause);
    this.clientId = clientId;
  }

  protected static String createMessage(String clientId) {
    return String.format("CertificatePinning and SslBundleUsage configured at same time in http-client : '%s'", clientId);
  }

  public String getClientId() {
    return clientId;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy