Package org.bouncycastle.tls
Class ProtocolName
java.lang.Object
org.bouncycastle.tls.ProtocolName
RFC 7301 Represents a protocol name for use with ALPN.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ProtocolName
static final ProtocolName
static final ProtocolName
static final ProtocolName
static final ProtocolName
static final ProtocolName
static final ProtocolName
static final ProtocolName
static final ProtocolName
static final ProtocolName
static final ProtocolName
static final ProtocolName
static final ProtocolName
static final ProtocolName
static final ProtocolName
static final ProtocolName
static final ProtocolName
static final ProtocolName
static final ProtocolName
static final ProtocolName
static final ProtocolName
static final ProtocolName
static final ProtocolName
static final ProtocolName
static final ProtocolName
static final ProtocolName
static final ProtocolName
static final ProtocolName
-
Method Summary
Modifier and TypeMethodDescriptionstatic ProtocolName
asRawBytes
(byte[] bytes) static ProtocolName
asUtf8Encoding
(String name) void
encode
(OutputStream output) Encode thisProtocolName
to anOutputStream
.boolean
byte[]
getBytes()
int
hashCode()
static ProtocolName
parse
(InputStream input) Parse aProtocolName
from anInputStream
.
-
Field Details
-
HTTP_1_1
-
SPDY_1
-
SPDY_2
-
SPDY_3
-
STUN_TURN
-
STUN_NAT_DISCOVERY
-
HTTP_2_TLS
-
HTTP_2_TCP
-
WEBRTC
-
WEBRTC_CONFIDENTIAL
-
FTP
-
IMAP
-
POP3
-
MANAGESIEVE
-
COAP
-
XMPP_CLIENT
-
XMPP_SERVER
-
ACME_TLS_1
-
OASIS_MQTT
-
DNS_OVER_TLS
-
NTSKE_1
-
SNU_RPC
-
HTTP_3
-
SMB_2
-
IRC
-
NNTP_READING
-
NNTP_TRANSIT
-
DNS_OVER_QUIC
-
-
Method Details
-
asRawBytes
-
asUtf8Encoding
-
getBytes
public byte[] getBytes() -
getUtf8Decoding
-
encode
Encode thisProtocolName
to anOutputStream
.- Parameters:
output
- theOutputStream
to encode to.- Throws:
IOException
-
parse
Parse aProtocolName
from anInputStream
.- Parameters:
input
- theInputStream
to parse from.- Returns:
- a
ProtocolName
object. - Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-