Class CertificateRequest


  • public class CertificateRequest
    extends java.lang.Object
    Deprecated.
    Migrate to the (D)TLS API in org.bouncycastle.tls (bctls jar).
    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 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