content: /*
   * This software has been contributed by the author to the public domain.
   * 
   * This software is provided by NIST as a service and is expressly
   * provided "AS IS."  NIST MAKES NO WARRANTY OF ANY KIND, EXPRESS, IMPLIED
   * OR STATUTORY, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTY OF
   * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT
   * AND DATA ACCURACY.  NIST does not warrant or make any representations
   * regarding the use of the software or the results thereof, including but
   * not limited to the correctness, accuracy, reliability or usefulness of
   * the software.
   *
   * Permission to use this software is contingent upon your acceptance
   * of the terms of this agreement
   *
   * .
   *
   */
  package gov2.nist.javax2.sip.stack;
  
  import javax.net.ssl.HandshakeCompletedEvent;
  import javax.net.ssl.HandshakeCompletedListener;
  
  public class HandshakeCompletedListenerImpl implements HandshakeCompletedListener {
  
      private HandshakeCompletedEvent handshakeCompletedEvent;
      private TLSMessageChannel tlsMessageChannel;
      
      
      public HandshakeCompletedListenerImpl(TLSMessageChannel tlsMessageChannel) {
          this.tlsMessageChannel = tlsMessageChannel;
          tlsMessageChannel.setHandshakeCompletedListener(this);
      }
  
      
      public void handshakeCompleted(HandshakeCompletedEvent handshakeCompletedEvent) {
         this.handshakeCompletedEvent = handshakeCompletedEvent;
         /*
         try {
             Thread.sleep(10);
         } catch (InterruptedException ex) {
             
         }*/
      }
  
      /**
       * @return the handshakeCompletedEvent
       */
      public HandshakeCompletedEvent getHandshakeCompletedEvent() {
          return handshakeCompletedEvent;
      }
      
  
  }
  