com.ericdaugherty.mail.server.security.transport
Class TransportLayer
java.lang.Object
com.ericdaugherty.mail.server.security.transport.TransportLayer
public class TransportLayer
- extends java.lang.Object
Responsibility for setting up TLS/SSL sessions and verifying credentials is handed
to this class.
- Author:
- Andreas Kyrmegalos
Method Summary |
void |
conclude()
|
java.net.Socket |
getSocket()
|
void |
init(java.net.Socket socket,
boolean serverMode,
boolean autoClose)
|
void |
verifyPeer(boolean serverMode)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransportLayer
public TransportLayer()
init
public void init(java.net.Socket socket,
boolean serverMode,
boolean autoClose)
throws java.io.IOException
- Throws:
java.io.IOException
verifyPeer
public final void verifyPeer(boolean serverMode)
throws javax.net.ssl.SSLPeerUnverifiedException
- Throws:
javax.net.ssl.SSLPeerUnverifiedException
getSocket
public java.net.Socket getSocket()
conclude
public void conclude()