Package org.conscrypt
Class OpenSSLX509CertPath
- java.lang.Object
-
- java.security.cert.CertPath
-
- org.conscrypt.OpenSSLX509CertPath
-
- All Implemented Interfaces:
Serializable
public class OpenSSLX509CertPath extends CertPath
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.security.cert.CertPath
CertPath.CertPathRep
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedOpenSSLX509CertPath(List<? extends X509Certificate> certificates)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CertPathfromEncoding(InputStream inStream)static CertPathfromEncoding(InputStream inStream, String encoding)List<? extends Certificate>getCertificates()Returns an immutable List of theCertificates contained in theCertPath.byte[]getEncoded()Returns an encoding of theCertPathusing the default encoding.byte[]getEncoded(String encoding)Iterator<String>getEncodings()Returns anIteratorover the supported encodings for a representation of the certificate path.
-
-
-
Constructor Detail
-
OpenSSLX509CertPath
protected OpenSSLX509CertPath(List<? extends X509Certificate> certificates)
-
-
Method Detail
-
getCertificates
public List<? extends Certificate> getCertificates()
Description copied from class:CertPathReturns an immutable List of theCertificates contained in theCertPath.- Specified by:
getCertificatesin classCertPath- Returns:
- a list of
Certificates in theCertPath.
-
getEncoded
public byte[] getEncoded() throws CertificateEncodingExceptionDescription copied from class:CertPathReturns an encoding of theCertPathusing the default encoding.- Specified by:
getEncodedin classCertPath- Returns:
- default encoding of the
CertPath. - Throws:
CertificateEncodingException- if the encoding fails.
-
getEncoded
public byte[] getEncoded(String encoding) throws CertificateEncodingException
Description copied from class:CertPath- Specified by:
getEncodedin classCertPath- Throws:
CertificateEncodingException- if the encoding fails.
-
getEncodings
public Iterator<String> getEncodings()
Description copied from class:CertPathReturns anIteratorover the supported encodings for a representation of the certificate path.- Specified by:
getEncodingsin classCertPath- Returns:
Iteratorover supported encodings (asStrings).
-
fromEncoding
public static CertPath fromEncoding(InputStream inStream, String encoding) throws CertificateException
- Throws:
CertificateException
-
fromEncoding
public static CertPath fromEncoding(InputStream inStream) throws CertificateException
- Throws:
CertificateException
-
-