Table of Contents

Class UrlAndHash

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

RFC 6066 5.

public sealed class UrlAndHash
Inheritance
UrlAndHash
Inherited Members

Constructors

UrlAndHash(string, byte[])

public UrlAndHash(string url, byte[] sha1Hash)

Parameters

url string
sha1Hash byte[]

Properties

Sha1Hash

public byte[] Sha1Hash { get; }

Property Value

byte[]

Url

public string Url { get; }

Property Value

string

Methods

Encode(Stream)

Encode this UrlAndHash to a Stream.

public void Encode(Stream output)

Parameters

output Stream

the Stream to encode to.

Exceptions

IOException

Parse(TlsContext, Stream)

Parse a UrlAndHash from a Stream.

public static UrlAndHash Parse(TlsContext context, Stream input)

Parameters

context TlsContext

the TlsContext of the current connection.

input Stream

the Stream to parse from.

Returns

UrlAndHash

a UrlAndHash object.

Exceptions

IOException