Package org.conscrypt

Class ApplicationProtocolSelectorAdapter

java.lang.Object
org.conscrypt.ApplicationProtocolSelectorAdapter

final class ApplicationProtocolSelectorAdapter extends Object
An adapter to bridge between the native code and the ApplicationProtocolSelector API.
  • Field Details

  • Constructor Details

  • Method Details

    • selectApplicationProtocol

      int selectApplicationProtocol(byte[] encodedProtocols)
      Performs the ALPN protocol selection from the given list of length-delimited peer protocols.
      Parameters:
      encodedProtocols - the peer protocols in length-delimited form.
      Returns:
      If successful, returns the offset into the lenghPrefixedList array of the selected protocol (i.e. points to the length prefix). Otherwise, returns NO_PROTOCOL_SELECTED.