Table of Contents

Class ProtocolName

Namespace
Org.BouncyCastle.Tls
Assembly
BouncyCastle.Cryptography.dll

RFC 7301 Represents a protocol name for use with ALPN.

public sealed class ProtocolName
Inheritance
ProtocolName
Inherited Members

Fields

Acme_Tls_1

public static readonly ProtocolName Acme_Tls_1

Field Value

ProtocolName

Coap

public static readonly ProtocolName Coap

Field Value

ProtocolName

Dns_Over_Quic

public static readonly ProtocolName Dns_Over_Quic

Field Value

ProtocolName

Dns_Over_Tls

public static readonly ProtocolName Dns_Over_Tls

Field Value

ProtocolName

Ftp

public static readonly ProtocolName Ftp

Field Value

ProtocolName

Http_1_1

public static readonly ProtocolName Http_1_1

Field Value

ProtocolName

Http_2_Tcp

public static readonly ProtocolName Http_2_Tcp

Field Value

ProtocolName

Http_2_Tls

public static readonly ProtocolName Http_2_Tls

Field Value

ProtocolName

Http_3

public static readonly ProtocolName Http_3

Field Value

ProtocolName

Imap

public static readonly ProtocolName Imap

Field Value

ProtocolName

Irc

public static readonly ProtocolName Irc

Field Value

ProtocolName

ManageSieve

public static readonly ProtocolName ManageSieve

Field Value

ProtocolName

Nntp_Reading

public static readonly ProtocolName Nntp_Reading

Field Value

ProtocolName

Nntp_Transit

public static readonly ProtocolName Nntp_Transit

Field Value

ProtocolName

Ntske_1

public static readonly ProtocolName Ntske_1

Field Value

ProtocolName

Oasis_Mqtt

public static readonly ProtocolName Oasis_Mqtt

Field Value

ProtocolName

Pop3

public static readonly ProtocolName Pop3

Field Value

ProtocolName

Smb_2

public static readonly ProtocolName Smb_2

Field Value

ProtocolName

Spdy_1

public static readonly ProtocolName Spdy_1

Field Value

ProtocolName

Spdy_2

public static readonly ProtocolName Spdy_2

Field Value

ProtocolName

Spdy_3

public static readonly ProtocolName Spdy_3

Field Value

ProtocolName

Stun_Nat_Discovery

public static readonly ProtocolName Stun_Nat_Discovery

Field Value

ProtocolName

Stun_Turn

public static readonly ProtocolName Stun_Turn

Field Value

ProtocolName

Sun_Rpc

public static readonly ProtocolName Sun_Rpc

Field Value

ProtocolName

WebRtc

public static readonly ProtocolName WebRtc

Field Value

ProtocolName

WebRtc_Confidential

public static readonly ProtocolName WebRtc_Confidential

Field Value

ProtocolName

Xmpp_Client

public static readonly ProtocolName Xmpp_Client

Field Value

ProtocolName

Xmpp_Server

public static readonly ProtocolName Xmpp_Server

Field Value

ProtocolName

Methods

AsRawBytes(byte[])

public static ProtocolName AsRawBytes(byte[] bytes)

Parameters

bytes byte[]

Returns

ProtocolName

AsUtf8Encoding(string)

public static ProtocolName AsUtf8Encoding(string name)

Parameters

name string

Returns

ProtocolName

Encode(Stream)

Encode this ProtocolName to a Stream.

public void Encode(Stream output)

Parameters

output Stream

the Stream to encode to.

Exceptions

IOException

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetBytes()

public byte[] GetBytes()

Returns

byte[]

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetUtf8Decoding()

public string GetUtf8Decoding()

Returns

string

Parse(Stream)

Parse a ProtocolName from a Stream.

public static ProtocolName Parse(Stream input)

Parameters

input Stream

the Stream to parse from.

Returns

ProtocolName

a ProtocolName object.

Exceptions

IOException