Class AMX509TrustManager
- java.lang.Object
-
- com.sun.identity.security.keystore.AMX509TrustManager
-
- All Implemented Interfaces:
TrustManager,X509TrustManager
public class AMX509TrustManager extends Object implements X509TrustManager
TheAMX509TrustManagerclass implements JSSE X509TrustManager interface. This implementation is the same as JSSE default implementation except it can manage user specified truststore.
-
-
Constructor Summary
Constructors Constructor Description AMX509TrustManager()create sunX509KeyManager for example: Create/load a truststore Get instance of a "SunX509" TrustManagerFactory "tmf" init the TrustManagerFactory with the truststore
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckClientTrusted(X509Certificate[] chain, String authType)voidcheckServerTrusted(X509Certificate[] chain, String authType)X509Certificate[]getAcceptedIssuers()KeyStoregetKeyStore()
-
-
-
Method Detail
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException
- Specified by:
checkServerTrustedin interfaceX509TrustManager- Throws:
CertificateException
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException
- Specified by:
checkClientTrustedin interfaceX509TrustManager- Throws:
CertificateException
-
getAcceptedIssuers
public X509Certificate[] getAcceptedIssuers()
- Specified by:
getAcceptedIssuersin interfaceX509TrustManager
-
getKeyStore
public KeyStore getKeyStore()
-
-