Class Certificate


  • public class Certificate
    extends java.lang.Object
    Deprecated.
    Migrate to the (D)TLS API in org.bouncycastle.tls (bctls jar).
    Parsing and encoding of a Certificate struct from RFC 4346.
     opaque ASN.1Cert<2^24-1>;
    
     struct {
         ASN.1Cert certificate_list<0..2^24-1>;
     } Certificate;
     
    See Also:
    Certificate
    • Field Detail

      • EMPTY_CHAIN

        public static final Certificate EMPTY_CHAIN
        Deprecated.
      • certificateList

        protected Certificate[] certificateList
        Deprecated.
    • Constructor Detail

      • Certificate

        public Certificate​(Certificate[] certificateList)
        Deprecated.
    • Method Detail

      • getCertificateList

        public Certificate[] getCertificateList()
        Deprecated.
        Returns:
        an array of Certificate representing a certificate chain.
      • getCertificateAt

        public Certificate getCertificateAt​(int index)
        Deprecated.
      • getLength

        public int getLength()
        Deprecated.
      • isEmpty

        public boolean isEmpty()
        Deprecated.
        Returns:
        true if this certificate chain contains no certificates, or false otherwise.
      • encode

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

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

        protected Certificate[] cloneCertificateList()
        Deprecated.