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

com.inversoft.net.ssl.UnsafeTrustManager Maven / Gradle / Ivy

Go to download

The Java 8 REST Client used in our commercial REST Client libraries such as Passport Java Client and our Java 8 Chef Client called Barista

There is a newer version: 4.2.1
Show newest version
/*
 * Copyright (c) 2018, Inversoft Inc., All Rights Reserved
 */
package com.inversoft.net.ssl;

import javax.net.ssl.X509TrustManager;
import java.security.cert.X509Certificate;

/**
 * @author Daniel DeGroff
 */
public class UnsafeTrustManager implements X509TrustManager {
  @Override
  public void checkClientTrusted(X509Certificate[] x509Certificates, String s) {
  }

  @Override
  public void checkServerTrusted(X509Certificate[] x509Certificates, String string) {
  }

  @Override
  public X509Certificate[] getAcceptedIssuers() {
    return new X509Certificate[0];
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy