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 X509TrustManagerCertificateExceptionpublic void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException
checkClientTrusted in interface X509TrustManagerCertificateExceptionpublic X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers in interface X509TrustManagerpublic KeyStore getKeyStore()
Copyright © 2010–2023 Open Identity Platform Community. All rights reserved.