Package org.bouncycastle.tls
Class URLAndHash
- java.lang.Object
-
- org.bouncycastle.tls.URLAndHash
-
public class URLAndHash extends java.lang.Object
RFC 6066 5.
-
-
Constructor Summary
Constructors Constructor Description URLAndHash(java.lang.String url, byte[] sha1Hash)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
encode(java.io.OutputStream output)
Encode thisURLAndHash
to anOutputStream
.byte[]
getSHA1Hash()
java.lang.String
getURL()
static URLAndHash
parse(TlsContext context, java.io.InputStream input)
Parse aURLAndHash
from anInputStream
.
-
-
-
Method Detail
-
getURL
public java.lang.String getURL()
-
getSHA1Hash
public byte[] getSHA1Hash()
-
encode
public void encode(java.io.OutputStream output) throws java.io.IOException
Encode thisURLAndHash
to anOutputStream
.- Parameters:
output
- theOutputStream
to encode to.- Throws:
java.io.IOException
-
parse
public static URLAndHash parse(TlsContext context, java.io.InputStream input) throws java.io.IOException
Parse aURLAndHash
from anInputStream
.- Parameters:
context
- theTlsContext
of the current connection.input
- theInputStream
to parse from.- Returns:
- a
URLAndHash
object. - Throws:
java.io.IOException
-
-