Class URLAndHash


  • public class URLAndHash
    extends java.lang.Object
    Deprecated.
    Migrate to the (D)TLS API in org.bouncycastle.tls (bctls jar).
    RFC 6066 5.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected byte[] sha1Hash
      Deprecated.
       
      protected java.lang.String url
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      URLAndHash​(java.lang.String url, byte[] sha1Hash)
      Deprecated.
       
    • Field Detail

      • url

        protected java.lang.String url
        Deprecated.
      • sha1Hash

        protected byte[] sha1Hash
        Deprecated.
    • Constructor Detail

      • URLAndHash

        public URLAndHash​(java.lang.String url,
                          byte[] sha1Hash)
        Deprecated.
    • 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 this URLAndHash to an OutputStream.
        Parameters:
        output - the OutputStream to encode to.
        Throws:
        java.io.IOException
      • parse

        public static URLAndHash parse​(TlsContext context,
                                       java.io.InputStream input)
                                throws java.io.IOException
        Deprecated.
        Parse a URLAndHash from an InputStream.
        Parameters:
        context - the TlsContext of the current connection.
        input - the InputStream to parse from.
        Returns:
        a URLAndHash object.
        Throws:
        java.io.IOException