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
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 Details
-
OpenSSLX509CertPath
-
-
Method Details
-
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
Description 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
Description copied from class:CertPath- Specified by:
getEncodedin classCertPath- Throws:
CertificateEncodingException- if the encoding fails.
-
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
- Throws:
CertificateException
-