Top Description Fields Constructors Methods
org.bouncycastle.tls

public Class URLAndHash

extends Object
Class Inheritance
Imports
java.io.IOException, .InputStream, .OutputStream, org.bouncycastle.util.Strings

RFC 6066 5.

Field Summary

Modifier and TypeField and Description
protected byte[]
protected String

Constructor Summary

AccessConstructor and Description
public
URLAndHash(String url, byte[] sha1Hash)

Method Summary

Modifier and TypeMethod and Description
public void
encode(OutputStream
the OutputStream to encode to.
output
)

Encode this URLAndHash to an OutputStream.

public byte[]
public String
public static URLAndHash

Returns:

a URLAndHash object.
parse
(TlsContext
the TlsContext of the current connection.
context
,
InputStream
the InputStream to parse from.
input
)

Parse a URLAndHash from an InputStream.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

sha1Hashback to summary
protected byte[] sha1Hash
urlback to summary
protected String url

Constructor Detail

URLAndHashback to summary
public URLAndHash(String url, byte[] sha1Hash)

Method Detail

encodeback to summary
public void encode(OutputStream output) throws IOException

Encode this URLAndHash to an OutputStream.

Parameters
output:OutputStream

the OutputStream to encode to.

getSHA1Hashback to summary
public byte[] getSHA1Hash()
getURLback to summary
public String getURL()
parseback to summary
public static URLAndHash parse(TlsContext context, InputStream input) throws IOException

Parse a URLAndHash from an InputStream.

Parameters
context:TlsContext

the TlsContext of the current connection.

input:InputStream

the InputStream to parse from.

Returns:URLAndHash

a URLAndHash object.