Bouncy Castle Cryptography Library 1.64

org.bouncycastle.crypto.tls
Class SignatureAndHashAlgorithm

java.lang.Object
  |
  +--org.bouncycastle.crypto.tls.SignatureAndHashAlgorithm

Deprecated. Migrate to the (D)TLS API in org.bouncycastle.tls (bctls jar).

public class SignatureAndHashAlgorithm
extends java.lang.Object

RFC 5246 7.4.1.4.1


Field Summary
protected  short hash
          Deprecated.  
protected  short signature
          Deprecated.  
 
Constructor Summary
SignatureAndHashAlgorithm(short hash, short signature)
          Deprecated.  
 
Method Summary
 void encode(java.io.OutputStream output)
          Deprecated. Encode this SignatureAndHashAlgorithm to an OutputStream.
 boolean equals(java.lang.Object obj)
          Deprecated.  
 short getHash()
          Deprecated.  
 short getSignature()
          Deprecated.  
 int hashCode()
          Deprecated.  
static SignatureAndHashAlgorithm parse(java.io.InputStream input)
          Deprecated. Parse a SignatureAndHashAlgorithm from an InputStream.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

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

getSignature

public short getSignature()
Deprecated. 
Returns:
SignatureAlgorithm

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 -  

parse

public static SignatureAndHashAlgorithm parse(java.io.InputStream input)
                                       throws java.io.IOException
Deprecated. 
Parse a SignatureAndHashAlgorithm from an InputStream.
Parameters:
input - the InputStream to parse from.
Returns:
a SignatureAndHashAlgorithm object.
Throws:
java.io.IOException -  

Bouncy Castle Cryptography Library 1.64