public class AMX509TrustManager extends Object implements X509TrustManager
AMX509TrustManager
class implements JSSE X509TrustManager
interface. This implementation is the same as JSSE default implementation
except it can manage user specified truststore.Constructor and Description |
---|
AMX509TrustManager()
create sunX509KeyManager
for example:
Create/load a truststore
Get instance of a "SunX509" TrustManagerFactory "tmf"
init the TrustManagerFactory with the truststore
|
Modifier and Type | Method and Description |
---|---|
void |
checkClientTrusted(X509Certificate[] chain,
String authType) |
void |
checkServerTrusted(X509Certificate[] chain,
String authType) |
X509Certificate[] |
getAcceptedIssuers() |
KeyStore |
getKeyStore() |
public AMX509TrustManager()
public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException
checkServerTrusted
in interface X509TrustManager
CertificateException
public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException
checkClientTrusted
in interface X509TrustManager
CertificateException
public X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers
in interface X509TrustManager
public KeyStore getKeyStore()
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.