Class CertificateRequest

java.lang.Object
org.bouncycastle.tls.CertificateRequest

public class CertificateRequest extends 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;
 
Updated for RFC 5246:
 struct {
     ClientCertificateType certificate_types<1..2^8-1>;
     SignatureAndHashAlgorithm supported_signature_algorithms<2^16-1>;
     DistinguishedName certificate_authorities<0..2^16-1>;
 } CertificateRequest;
 
Revised for RFC 8446:
 struct {
     opaque certificate_request_context<0..2^8-1>;
     Extension extensions<2..2^16-1>;
 } CertificateRequest;
 
See Also:
  • Field Details

    • certificateRequestContext

      protected final byte[] certificateRequestContext
    • certificateTypes

      protected final short[] certificateTypes
    • supportedSignatureAlgorithms

      protected final Vector supportedSignatureAlgorithms
    • supportedSignatureAlgorithmsCert

      protected final Vector supportedSignatureAlgorithmsCert
    • certificateAuthorities

      protected final Vector certificateAuthorities
  • Constructor Details

    • CertificateRequest

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

      public CertificateRequest(byte[] certificateRequestContext, Vector supportedSignatureAlgorithms, Vector supportedSignatureAlgorithmsCert, Vector certificateAuthorities) throws IOException
      Throws:
      IOException
  • Method Details