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