com.jagacy.ssl
Class SSLConnector
java.lang.Object
com.jagacy.ssl.SSLConnector
- All Implemented Interfaces:
- javax.net.ssl.TrustManager, javax.net.ssl.X509TrustManager
- public class SSLConnector
- extends java.lang.Object
- implements javax.net.ssl.X509TrustManager
This class implements the SSLInterface and is used to create SSL socket
instances.
- Author:
- Stephen M. Kennedy
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SSLConnector
public SSLConnector(UserInterface ui,
Loggable logger,
JagacyProperties properties)
getSignature
public java.lang.String getSignature()
init
public void init(java.lang.String password)
throws java.lang.Exception
- Throws:
java.lang.Exception
createSSLSocket
public java.net.Socket createSSLSocket(java.net.InetAddress destination,
int port)
throws java.lang.Exception
- Throws:
java.lang.Exception
getAcceptedIssuers
public java.security.cert.X509Certificate[] getAcceptedIssuers()
- Specified by:
getAcceptedIssuers
in interface javax.net.ssl.X509TrustManager
checkClientTrusted
public void checkClientTrusted(java.security.cert.X509Certificate[] arg0,
java.lang.String arg1)
throws java.security.cert.CertificateException
- Specified by:
checkClientTrusted
in interface javax.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.CertificateException
- Specified by:
checkServerTrusted
in interface javax.net.ssl.X509TrustManager
- Throws:
java.security.cert.CertificateException