Interface ClientSideNegotiator


public interface ClientSideNegotiator
Provides a set of callbacks that will be invoked when negotiation NPN on the client side.
  • Method Details

    • wantNegotiate

      boolean wantNegotiate(SSLEngine engine)
      Returns:
      true if this NPN negotiation should occur, otherwise false.
    • selectProtocol

      String selectProtocol(SSLEngine engine, LinkedHashSet<String> protocols)
      Select and return a single protocol from the provided set of protocols.
    • onNoDeal

      void onNoDeal(SSLEngine engine)
      This will be invoked if no protocols are returned from the server or selectProtocol returns null.