Package org.bouncycastle.crypto.tls
Class Certificate
- java.lang.Object
-
- org.bouncycastle.crypto.tls.Certificate
-
public class Certificate extends java.lang.ObjectDeprecated.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 Summary
Fields Modifier and Type Field Description protected Certificate[]certificateListDeprecated.static CertificateEMPTY_CHAINDeprecated.
-
Constructor Summary
Constructors Constructor Description Certificate(Certificate[] certificateList)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected Certificate[]cloneCertificateList()Deprecated.voidencode(java.io.OutputStream output)Deprecated.Encode thisCertificateto anOutputStream.CertificategetCertificateAt(int index)Deprecated.Certificate[]getCertificateList()Deprecated.intgetLength()Deprecated.booleanisEmpty()Deprecated.static Certificateparse(java.io.InputStream input)Deprecated.Parse aCertificatefrom anInputStream.
-
-
-
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
Certificaterepresenting a certificate chain.
-
getCertificateAt
public Certificate getCertificateAt(int index)
Deprecated.
-
getLength
public int getLength()
Deprecated.
-
isEmpty
public boolean isEmpty()
Deprecated.- Returns:
trueif this certificate chain contains no certificates, orfalseotherwise.
-
encode
public void encode(java.io.OutputStream output) throws java.io.IOExceptionDeprecated.Encode thisCertificateto anOutputStream.- Parameters:
output- theOutputStreamto encode to.- Throws:
java.io.IOException
-
parse
public static Certificate parse(java.io.InputStream input) throws java.io.IOException
Deprecated.Parse aCertificatefrom anInputStream.- Parameters:
input- theInputStreamto parse from.- Returns:
- a
Certificateobject. - Throws:
java.io.IOException
-
cloneCertificateList
protected Certificate[] cloneCertificateList()
Deprecated.
-
-