Package org.bouncycastle.tls
Class URLAndHash
- java.lang.Object
-
- org.bouncycastle.tls.URLAndHash
-
public class URLAndHash extends java.lang.ObjectRFC 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 voidencode(java.io.OutputStream output)Encode thisURLAndHashto anOutputStream.byte[]getSHA1Hash()java.lang.StringgetURL()static URLAndHashparse(TlsContext context, java.io.InputStream input)Parse aURLAndHashfrom anInputStream.
-
-
-
Method Detail
-
getURL
public java.lang.String getURL()
-
getSHA1Hash
public byte[] getSHA1Hash()
-
encode
public void encode(java.io.OutputStream output) throws java.io.IOExceptionEncode thisURLAndHashto anOutputStream.- Parameters:
output- theOutputStreamto encode to.- Throws:
java.io.IOException
-
parse
public static URLAndHash parse(TlsContext context, java.io.InputStream input) throws java.io.IOException
Parse aURLAndHashfrom anInputStream.- Parameters:
context- theTlsContextof the current connection.input- theInputStreamto parse from.- Returns:
- a
URLAndHashobject. - Throws:
java.io.IOException
-
-