public class URLAndHash
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
sha1Hash |
protected java.lang.String |
url |
| Constructor and Description |
|---|
URLAndHash(java.lang.String url,
byte[] sha1Hash) |
| Modifier and Type | Method and Description |
|---|---|
void |
encode(java.io.OutputStream output)
Encode this
URLAndHash to an OutputStream. |
byte[] |
getSHA1Hash() |
java.lang.String |
getURL() |
static URLAndHash |
parse(TlsContext context,
java.io.InputStream input)
Parse a
URLAndHash from an InputStream. |
public java.lang.String getURL()
public byte[] getSHA1Hash()
public void encode(java.io.OutputStream output)
throws java.io.IOException
URLAndHash to an OutputStream.output - the OutputStream to encode to.java.io.IOExceptionpublic static URLAndHash parse(TlsContext context, java.io.InputStream input) throws java.io.IOException
URLAndHash from an InputStream.context - the TlsContext of the current connection.input - the InputStream to parse from.URLAndHash object.java.io.IOException