public class UntrustedTrustManager extends Object implements X509TrustManager
Constructor and Description |
---|
UntrustedTrustManager() |
Modifier and Type | Method and Description |
---|---|
void |
checkClientTrusted(X509Certificate[] chain,
String authType)
Given the partial or complete certificate chain provided by the peer,
build a certificate path to a trusted root and return if it can be
validated and is trusted for client SSL authentication based on the
authentication type.
|
void |
checkServerTrusted(X509Certificate[] chain,
String authType)
Given the partial or complete certificate chain provided by the peer,
build a certificate path to a trusted root and return if it can be
validated and is trusted for server SSL authentication based on the
authentication type.
|
X509Certificate[] |
getAcceptedIssuers()
Return an array of certificate authority certificates which are trusted
for authenticating peers.
|
public void checkClientTrusted(X509Certificate[] chain, String authType)
checkClientTrusted
in interface X509TrustManager
chain
- Certificate.authType
- Authentication type.public void checkServerTrusted(X509Certificate[] chain, String authType)
checkServerTrusted
in interface X509TrustManager
chain
- Certificate.authType
- Authentication type.public X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers
in interface X509TrustManager