All Packages Class Hierarchy This Package Previous Next Index
Class netscape.security.x509.CertificateChain
netscape.security.x509.CertificateChain
- public class CertificateChain
-
CertificateChain()
-
-
CertificateChain(X509Certificate)
- constructs a certificate chain from a certificate.
-
CertificateChain(X509Certificate[])
- constructs a certificate chain from a X509 certificate array.
-
decode(InputStream)
- decode from PKCS7 blob.
-
encode(OutputStream)
-
-
encode(OutputStream, boolean)
- encode in PKCS7 blob.
-
getCertificate(int)
- returns the certificate at specified index in chain.
-
getChain()
- returns the certificate chain as an array of X509 certificates.
-
getFirstCertificate()
- returns the first certificate in chain.
CertificateChain
public CertificateChain()
CertificateChain
public CertificateChain(X509Certificate cert)
- constructs a certificate chain from a certificate.
- Parameters:
- cert - a certificate
CertificateChain
public CertificateChain(X509Certificate chain[])
- constructs a certificate chain from a X509 certificate array.
- Parameters:
- cert - a certificate array.
getCertificate
public X509Certificate getCertificate(int index)
- returns the certificate at specified index in chain.
- Parameters:
- index - the index.
- Returns:
- the X509 certificate at the given index.
getFirstCertificate
public X509Certificate getFirstCertificate()
- returns the first certificate in chain.
- Parameters:
- index - the index.
- Returns:
- the X509 certificate at the given index.
getChain
public X509Certificate[] getChain()
- returns the certificate chain as an array of X509 certificates.
- Returns:
- an array of X509 Certificates.
encode
public void encode(OutputStream out) throws IOException
encode
public void encode(OutputStream out,
boolean sort) throws IOException
- encode in PKCS7 blob.
decode
public void decode(InputStream in) throws IOException
- decode from PKCS7 blob.
All Packages Class Hierarchy This Package Previous Next Index