Package org.bouncycastle.tls
Class URLAndHash
java.lang.Object
org.bouncycastle.tls.URLAndHash
RFC 6066 5.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
encode
(OutputStream output) Encode thisURLAndHash
to anOutputStream
.byte[]
getURL()
static URLAndHash
parse
(TlsContext context, InputStream input) Parse aURLAndHash
from anInputStream
.
-
Field Details
-
url
-
sha1Hash
protected byte[] sha1Hash
-
-
Constructor Details
-
URLAndHash
-
-
Method Details
-
getURL
-
getSHA1Hash
public byte[] getSHA1Hash() -
encode
Encode thisURLAndHash
to anOutputStream
.- Parameters:
output
- theOutputStream
to encode to.- Throws:
IOException
-
parse
Parse aURLAndHash
from anInputStream
.- Parameters:
context
- theTlsContext
of the current connection.input
- theInputStream
to parse from.- Returns:
- a
URLAndHash
object. - Throws:
IOException
-