opaque ASN.1Cert<2^24-1>;
struct {
ASN.1Cert certificate_list<0..2^24-1>;
} Certificate;
org.bouncycastle.asn1.x509.Certificate
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| protected final CertificateEntry[] | |
| protected final byte[] | |
| protected final short | |
| private static final CertificateEntry[] | |
| private static final TlsCertificate[] | |
| public static final Certificate | |
| public static final Certificate |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | Certificate(short certificateType, byte[] certificateRequestContext, CertificateEntry[] certificateEntryList)
|
| Modifier and Type | Method and Description |
|---|---|
| protected static void | calculateEndPointHash(TlsContext context, TlsCertificate cert, byte[] encoding, OutputStream output)
|
| protected CertificateEntry[] | |
| protected TlsCertificate[] | |
| private static CertificateEntry[] | |
| public void | encode(TlsContext context, OutputStream
the messageOutput, OutputStream OutputStream to encode to.the endPointHashOutput)OutputStream to write the "end point hash" (or null).Encode this |
| public TlsCertificate | |
| public CertificateEntry | |
| public CertificateEntry[] | |
| public TlsCertificate[] | Returns: an array oforg. representing a certificate
chain.
|
| public byte[] | |
| public short | |
| public int | |
| public boolean | |
| public static Certificate | Returns: aCertificate object.the context, InputStream TlsContext of the current connection.the messageInput, OutputStream InputStream to parse from.the endPointHashOutput)OutputStream to write the "end point hash" (or null).
Deprecated
Use version taking a
Parse a ParseOptions argument instead.
Certificate from an InputStream.
|
| public static Certificate | Returns: aCertificate object.the options,ParseOptions to apply during parsing.the context, InputStream TlsContext of the current connection.the messageInput, OutputStream InputStream to parse from.the endPointHashOutput)OutputStream to write the "end point hash" (or null).Parse a |
| certificateEntryList | back to summary |
|---|---|
| protected final CertificateEntry[] certificateEntryList | |
| certificateRequestContext | back to summary |
|---|---|
| protected final byte[] certificateRequestContext | |
| certificateType | back to summary |
|---|---|
| protected final short certificateType | |
| EMPTY_CERT_ENTRIES | back to summary |
|---|---|
| private static final CertificateEntry[] EMPTY_CERT_ENTRIES | |
| EMPTY_CERTS | back to summary |
|---|---|
| private static final TlsCertificate[] EMPTY_CERTS | |
| EMPTY_CHAIN | back to summary |
|---|---|
| public static final Certificate EMPTY_CHAIN | |
| EMPTY_CHAIN_TLS13 | back to summary |
|---|---|
| public static final Certificate EMPTY_CHAIN_TLS13 | |
| Certificate | back to summary |
|---|---|
| public Certificate(TlsCertificate[] certificateList) | |
| Certificate | back to summary |
|---|---|
| public Certificate(byte[] certificateRequestContext, CertificateEntry[] certificateEntryList) | |
| Certificate | back to summary |
|---|---|
| public Certificate(short certificateType, byte[] certificateRequestContext, CertificateEntry[] certificateEntryList) | |
| calculateEndPointHash | back to summary |
|---|---|
| protected static void calculateEndPointHash(TlsContext context, TlsCertificate cert, byte[] encoding, OutputStream output) throws IOException | |
| cloneCertificateEntryList | back to summary |
|---|---|
| protected CertificateEntry[] cloneCertificateEntryList() | |
| cloneCertificateList | back to summary |
|---|---|
| protected TlsCertificate[] cloneCertificateList() | |
| convert | back to summary |
|---|---|
| private static CertificateEntry[] convert(TlsCertificate[] certificateList) | |
| encode | back to summary |
|---|---|
| public void encode(TlsContext context, OutputStream messageOutput, OutputStream endPointHashOutput) throws IOException Encode this
| |
| getCertificateAt | back to summary |
|---|---|
| public TlsCertificate getCertificateAt(int index) | |
| getCertificateEntryAt | back to summary |
|---|---|
| public CertificateEntry getCertificateEntryAt(int index) | |
| getCertificateEntryList | back to summary |
|---|---|
| public CertificateEntry[] getCertificateEntryList() | |
| getCertificateList | back to summary |
|---|---|
public TlsCertificate[] getCertificateList()
| |
| getCertificateRequestContext | back to summary |
|---|---|
| public byte[] getCertificateRequestContext() | |
| getCertificateType | back to summary |
|---|---|
| public short getCertificateType() | |
| getLength | back to summary |
|---|---|
| public int getLength() | |
| isEmpty | back to summary |
|---|---|
public boolean isEmpty()
| |
| parse | back to summary |
|---|---|
| public static Certificate parse(TlsContext context, InputStream messageInput, OutputStream endPointHashOutput) throws IOException
Deprecated Use version taking a Parse a
| |
| parse | back to summary |
|---|---|
| public static Certificate parse(Certificate. Parse a
| |
| Modifier and Type | Field and Description |
|---|---|
| private short | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public short | |
| public int | |
| public Certificate. | setCertificateType(short certificateType)
Set the |
| public Certificate. |
| certificateType | back to summary |
|---|---|
| private short certificateType | |
| maxChainLength | back to summary |
|---|---|
| private int maxChainLength | |
| ParseOptions | back to summary |
|---|---|
| public ParseOptions() | |
| getCertificateType | back to summary |
|---|---|
| public short getCertificateType() | |
| getMaxChainLength | back to summary |
|---|---|
| public int getMaxChainLength() | |
| setCertificateType | back to summary |
|---|---|
| public Certificate. Set the | |
| setMaxChainLength | back to summary |
|---|---|
| public Certificate. | |