org.jgroups.protocols.kubernetes.stream.TrustManagers Maven / Gradle / Ivy
The newest version!
package org.jgroups.protocols.kubernetes.stream;
import javax.net.ssl.TrustManager;
import javax.net.ssl.X509TrustManager;
import java.security.cert.X509Certificate;
/**
* @author Radoslav Husar
*/
enum TrustManagers {
;
static final TrustManager[] INSECURE_TRUST_MANAGERS = {
new X509TrustManager() {
@Override
public void checkClientTrusted(X509Certificate[] chain, String authType) {
}
@Override
public void checkServerTrusted(X509Certificate[] chain, String authType) {
}
@Override
public X509Certificate[] getAcceptedIssuers() {
return null;
}
}
};
}