Package org.bouncycastle.tls
Class URLAndHash
java.lang.Object
org.bouncycastle.tls.URLAndHash
RFC 6066 5.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencode(OutputStream output) Encode thisURLAndHashto anOutputStream.byte[]getURL()static URLAndHashparse(TlsContext context, InputStream input) Parse aURLAndHashfrom anInputStream.
-
Field Details
-
url
-
sha1Hash
protected byte[] sha1Hash
-
-
Constructor Details
-
URLAndHash
-
-
Method Details
-
getURL
-
getSHA1Hash
public byte[] getSHA1Hash() -
encode
Encode thisURLAndHashto anOutputStream.- Parameters:
output- theOutputStreamto encode to.- Throws:
IOException
-
parse
Parse aURLAndHashfrom anInputStream.- Parameters:
context- theTlsContextof the current connection.input- theInputStreamto parse from.- Returns:
- a
URLAndHashobject. - Throws:
IOException
-