
com.star.net.http.ssl.DefaultTrustManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of utils Show documentation
Show all versions of utils Show documentation
some utility class for java develop
The newest version!
package com.star.net.http.ssl;
import javax.net.ssl.X509TrustManager;
import java.security.cert.X509Certificate;
/**
* 证书管理
*
* @author http://git.oschina.net/loolly/hutool
*
*/
public class DefaultTrustManager implements X509TrustManager {
/**
* 空实现
*/
@Override
public void checkClientTrusted(final X509Certificate[] arg0, final String arg1) {
// 嘛都不干
}
/**
* 空实现
*/
@Override
public void checkServerTrusted(final X509Certificate[] arg0, final String arg1) {
// 嘛都不干
}
/**
* 空实现
*/
@Override
public X509Certificate[] getAcceptedIssuers() {
// 嘛都不干
return new X509Certificate[0];
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy