Bouncy Castle Cryptography Library 1.64

org.bouncycastle.crypto.tls
Class DigitallySigned

java.lang.Object
  extended byorg.bouncycastle.crypto.tls.DigitallySigned

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

public class DigitallySigned
extends java.lang.Object


Field Summary
protected  SignatureAndHashAlgorithm algorithm
          Deprecated.  
protected  byte[] signature
          Deprecated.  
 
Constructor Summary
DigitallySigned(SignatureAndHashAlgorithm algorithm, byte[] signature)
          Deprecated.  
 
Method Summary
 void encode(java.io.OutputStream output)
          Deprecated. Encode this DigitallySigned to an OutputStream.
 SignatureAndHashAlgorithm getAlgorithm()
          Deprecated.  
 byte[] getSignature()
          Deprecated.  
static DigitallySigned parse(TlsContext context, java.io.InputStream input)
          Deprecated. Parse a DigitallySigned from an InputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

algorithm

protected SignatureAndHashAlgorithm algorithm
Deprecated. 

signature

protected byte[] signature
Deprecated. 
Constructor Detail

DigitallySigned

public DigitallySigned(SignatureAndHashAlgorithm algorithm,
                       byte[] signature)
Deprecated. 
Method Detail

getAlgorithm

public SignatureAndHashAlgorithm getAlgorithm()
Deprecated. 
Returns:
a SignatureAndHashAlgorithm (or null before TLS 1.2).

getSignature

public byte[] getSignature()
Deprecated. 

encode

public void encode(java.io.OutputStream output)
            throws java.io.IOException
Deprecated. 
Encode this DigitallySigned to an OutputStream.

Parameters:
output - the OutputStream to encode to.
Throws:
java.io.IOException

parse

public static DigitallySigned parse(TlsContext context,
                                    java.io.InputStream input)
                             throws java.io.IOException
Deprecated. 
Parse a DigitallySigned from an InputStream.

Parameters:
context - the TlsContext of the current connection.
input - the InputStream to parse from.
Returns:
a DigitallySigned object.
Throws:
java.io.IOException

Bouncy Castle Cryptography Library 1.64