public class URLAndHash
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected byte[] |
sha1Hash
Deprecated.
|
protected java.lang.String |
url
Deprecated.
|
Constructor and Description |
---|
URLAndHash(java.lang.String url,
byte[] sha1Hash)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
encode(java.io.OutputStream output)
Deprecated.
Encode this
URLAndHash to an OutputStream . |
byte[] |
getSHA1Hash()
Deprecated.
|
java.lang.String |
getURL()
Deprecated.
|
static URLAndHash |
parse(TlsContext context,
java.io.InputStream input)
Deprecated.
Parse a
URLAndHash from an InputStream . |
protected java.lang.String url
protected byte[] sha1Hash
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.IOException
public 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