Bouncy Castle Cryptography Library 1.64

org.bouncycastle.crypto.tls
Class CertificateRequest

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

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

public class CertificateRequest
extends java.lang.Object

Parsing and encoding of a CertificateRequest struct from RFC 4346. struct { ClientCertificateType certificate_types<1..2^8-1>; DistinguishedName certificate_authorities<3..2^16-1>; } CertificateRequest;

See Also:
ClientCertificateType, X500Name

Field Summary
protected  java.util.Vector certificateAuthorities
          Deprecated.  
protected  short[] certificateTypes
          Deprecated.  
protected  java.util.Vector supportedSignatureAlgorithms
          Deprecated.  
 
Constructor Summary
CertificateRequest(short[] certificateTypes, java.util.Vector supportedSignatureAlgorithms, java.util.Vector certificateAuthorities)
          Deprecated.  
 
Method Summary
 void encode(java.io.OutputStream output)
          Deprecated. Encode this CertificateRequest to an OutputStream.
 java.util.Vector getCertificateAuthorities()
          Deprecated.  
 short[] getCertificateTypes()
          Deprecated.  
 java.util.Vector getSupportedSignatureAlgorithms()
          Deprecated.  
static CertificateRequest parse(TlsContext context, java.io.InputStream input)
          Deprecated. Parse a CertificateRequest from an InputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

certificateTypes

protected short[] certificateTypes
Deprecated. 

supportedSignatureAlgorithms

protected java.util.Vector supportedSignatureAlgorithms
Deprecated. 

certificateAuthorities

protected java.util.Vector certificateAuthorities
Deprecated. 
Constructor Detail

CertificateRequest

public CertificateRequest(short[] certificateTypes,
                          java.util.Vector supportedSignatureAlgorithms,
                          java.util.Vector certificateAuthorities)
Deprecated. 
Parameters:
certificateTypes - see ClientCertificateType for valid constants.
certificateAuthorities - a Vector of X500Name.
Method Detail

getCertificateTypes

public short[] getCertificateTypes()
Deprecated. 
Returns:
an array of certificate types
See Also:
ClientCertificateType

getSupportedSignatureAlgorithms

public java.util.Vector getSupportedSignatureAlgorithms()
Deprecated. 
Returns:
a Vector of SignatureAndHashAlgorithm (or null before TLS 1.2).

getCertificateAuthorities

public java.util.Vector getCertificateAuthorities()
Deprecated. 
Returns:
a Vector of X500Name

encode

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

parse

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

Bouncy Castle Cryptography Library 1.64