Home | History | Annotate | Download | only in stack
      1 /*
      2  * This software has been contributed by the author to the public domain.
      3  *
      4  * This software is provided by NIST as a service and is expressly
      5  * provided "AS IS."  NIST MAKES NO WARRANTY OF ANY KIND, EXPRESS, IMPLIED
      6  * OR STATUTORY, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTY OF
      7  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT
      8  * AND DATA ACCURACY.  NIST does not warrant or make any representations
      9  * regarding the use of the software or the results thereof, including but
     10  * not limited to the correctness, accuracy, reliability or usefulness of
     11  * the software.
     12  *
     13  * Permission to use this software is contingent upon your acceptance
     14  * of the terms of this agreement
     15  *
     16  * .
     17  *
     18  */
     19 package gov.nist.javax.sip.stack;
     20 
     21 import javax.net.ssl.HandshakeCompletedEvent;
     22 import javax.net.ssl.HandshakeCompletedListener;
     23 
     24 public class HandshakeCompletedListenerImpl implements HandshakeCompletedListener {
     25 
     26     private HandshakeCompletedEvent handshakeCompletedEvent;
     27     private TLSMessageChannel tlsMessageChannel;
     28 
     29 
     30     public HandshakeCompletedListenerImpl(TLSMessageChannel tlsMessageChannel) {
     31         this.tlsMessageChannel = tlsMessageChannel;
     32         tlsMessageChannel.setHandshakeCompletedListener(this);
     33     }
     34 
     35 
     36     public void handshakeCompleted(HandshakeCompletedEvent handshakeCompletedEvent) {
     37        this.handshakeCompletedEvent = handshakeCompletedEvent;
     38        /*
     39        try {
     40            Thread.sleep(10);
     41        } catch (InterruptedException ex) {
     42 
     43        }*/
     44     }
     45 
     46     /**
     47      * @return the handshakeCompletedEvent
     48      */
     49     public HandshakeCompletedEvent getHandshakeCompletedEvent() {
     50         return handshakeCompletedEvent;
     51     }
     52 
     53 
     54 }
     55