Class SignatureAndHashAlgorithm


  • public class SignatureAndHashAlgorithm
    extends java.lang.Object
    Deprecated.
    Migrate to the (D)TLS API in org.bouncycastle.tls (bctls jar).
    RFC 5246 7.4.1.4.1
    • Field Detail

      • hash

        protected short hash
        Deprecated.
      • signature

        protected short signature
        Deprecated.
    • Constructor Detail

      • SignatureAndHashAlgorithm

        public SignatureAndHashAlgorithm​(short hash,
                                         short signature)
        Deprecated.
        Parameters:
        hash - HashAlgorithm
        signature - SignatureAlgorithm
    • Method Detail

      • getHash

        public short getHash()
        Deprecated.
        Returns:
        HashAlgorithm
      • equals

        public boolean equals​(java.lang.Object obj)
        Deprecated.
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class java.lang.Object
      • encode

        public void encode​(java.io.OutputStream output)
                    throws java.io.IOException
        Deprecated.
        Encode this SignatureAndHashAlgorithm to an OutputStream.
        Parameters:
        output - the OutputStream to encode to.
        Throws:
        java.io.IOException