Class X509CertificateTrustManager
- java.lang.Object
-
- org.tn5250j.framework.transport.SSL.X509CertificateTrustManager
-
- All Implemented Interfaces:
javax.net.ssl.TrustManager,javax.net.ssl.X509TrustManager
public class X509CertificateTrustManager extends java.lang.Object implements javax.net.ssl.X509TrustManagerDeprecated.no longer used.This class is used to trust certificates exchanged during an SSL socket handshake. It allows the user to accept the certificate so that connections can be made without requiring the server to have a certificate signed by a CA (Verisign, Thawte, etc.).- Author:
- Stephen M. Kennedy
-
-
Constructor Summary
Constructors Constructor Description X509CertificateTrustManager(javax.net.ssl.TrustManager[] managers, java.security.KeyStore keyStore)Deprecated.
-
Method Summary
Modifier and Type Method Description voidcheckClientTrusted(java.security.cert.X509Certificate[] chain, java.lang.String type)Deprecated.voidcheckServerTrusted(java.security.cert.X509Certificate[] chain, java.lang.String type)Deprecated.Checks the server certificate.java.security.cert.X509Certificate[]getAcceptedIssuers()Deprecated.
-
-
-
Method Detail
-
checkClientTrusted
public void checkClientTrusted(java.security.cert.X509Certificate[] chain, java.lang.String type) throws java.security.cert.CertificateExceptionDeprecated.- Specified by:
checkClientTrustedin interfacejavax.net.ssl.X509TrustManager- Throws:
java.security.cert.CertificateException
-
checkServerTrusted
public void checkServerTrusted(java.security.cert.X509Certificate[] chain, java.lang.String type) throws java.security.cert.CertificateExceptionDeprecated.Checks the server certificate. If it isn't trusted by the trust manager passed to the constructor, then the user will be prompted to accept the certificate.- Specified by:
checkServerTrustedin interfacejavax.net.ssl.X509TrustManager- Parameters:
chain- a chaintype- a type- Throws:
java.security.cert.CertificateException
-
getAcceptedIssuers
public java.security.cert.X509Certificate[] getAcceptedIssuers()
Deprecated.- Specified by:
getAcceptedIssuersin interfacejavax.net.ssl.X509TrustManager
-
-