SSLUtils.encodeProtocols

Encodes a list of protocols into the wire-format (length-prefixed 8-bit strings). Requires that all strings be encoded with US-ASCII.

@param protocols the list of protocols to be encoded @return the encoded form of the protocol list. @throws IllegalArgumentException if protocols is {@code null}, or if any element is {@code null} or an empty string.

class SSLUtils
static
byte[]
encodeProtocols
(
string[] protocols
)

Meta