Package org.teiid.net.socket

Examples of org.teiid.net.socket.Handshake


  public void exceptionOccurred(Throwable t) {
    LogManager.log(t instanceof IOException?MessageLevel.DETAIL:MessageLevel.ERROR, LogConstants.CTX_TRANSPORT, t, "Unhandled exception, closing client instance"); //$NON-NLS-1$
  }

  public void onConnection() throws CommunicationException {
        Handshake handshake = new Handshake();
       
        if (usingEncryption) {
            keyGen = new DhKeyGenerator();
            byte[] publicKey;
      try {
        publicKey = keyGen.createPublicKey();
      } catch (CryptoException e) {
        throw new CommunicationException(e);
      }
            handshake.setPublicKey(publicKey);
        }
        this.objectSocket.write(handshake);
  }
View Full Code Here

TOP

Related Classes of org.teiid.net.socket.Handshake

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.