Package naga

Interface NIOSocketSSL

All Superinterfaces:
NIOAbstractSocket, NIOSocket

public interface NIOSocketSSL extends NIOSocket
Interface for a SSL Socket
Author:
Christoffer Lerno
  • Method Details

    • getSSLEngine

      SSLEngine getSSLEngine()
      Returns the SSLEngine in use for this socket.
      Returns:
      an SSLEngine.
    • beginHandshake

      void beginHandshake() throws SSLException
      Initiates SSL-handshake, starts encrypted communication.
      Throws:
      SSLException - if the handshake fails
    • isEncrypted

      boolean isEncrypted()
      Returns:
      true if handshake is initiated and consequent data will be encrypted.