com.inversoft.net.ssl.UnsafeTrustManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of restify Show documentation
Show all versions of restify Show documentation
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
/*
* 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