Top Description Inners Fields Constructors Methods
org.conscrypt

pack-priv final Class OpenSSLX509CertPath

extends CertPath
Class Inheritance
Imports
java.io.IOException, .InputStream, .PushbackInputStream, java.security.cert.CertPath, .Certificate, .CertificateEncodingException, .CertificateException, .CertificateParsingException, .X509Certificate, java.util.ArrayList, .Arrays, .Collections, .Iterator, .List, org.conscrypt.OpenSSLX509CertificateFactory.ParsingException

An implementation of CertPath based on BoringSSL.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static enum
OpenSSLX509CertPath.Encoding

Supported encoding types for CerthPath.

Field Summary

Modifier and TypeField and Description
private static final List<String>
ALL_ENCODINGS

Unmodifiable list of encodings for the API.

private static final OpenSSLX509CertPath.Encoding
private final List<? extends X509Certificate>
private static final byte[]
private static final int
private static final long

Constructor Summary

AccessConstructor and Description
pack-priv
OpenSSLX509CertPath(List<? extends X509Certificate> certificates)

Method Summary

Modifier and TypeMethod and Description
private static CertPath
pack-priv static CertPath
fromEncoding(InputStream inStream, String encoding)

pack-priv static CertPath
private static CertPath
private static CertPath
public List<? extends Certificate>
getCertificates()

Implements abstract java.security.cert.CertPath.getCertificates.

Returns the list of certificates in this certification path.
private byte[]
public byte[]
getEncoded()

Implements abstract java.security.cert.CertPath.getEncoded.

Returns the encoded form of this certification path, using the default encoding.
public byte[]
getEncoded(String
the name of the encoding to use
encoding
)

Implements abstract java.security.cert.CertPath.getEncoded.

Returns the encoded form of this certification path, using the specified encoding.
public Iterator<String>
getEncodings()

Implements abstract java.security.cert.CertPath.getEncodings.

Returns an iteration of the encodings supported by this certification path, with the default encoding first.
pack-priv static Iterator<String>
Inherited from java.security.cert.CertPath:
equalsgetTypehashCodetoStringwriteReplace

Field Detail

ALL_ENCODINGSback to summary
private static final List<String> ALL_ENCODINGS

Unmodifiable list of encodings for the API.

DEFAULT_ENCODINGback to summary
private static final OpenSSLX509CertPath.Encoding DEFAULT_ENCODING
mCertificatesback to summary
private final List<? extends X509Certificate> mCertificates
PKCS7_MARKERback to summary
private static final byte[] PKCS7_MARKER
PUSHBACK_SIZEback to summary
private static final int PUSHBACK_SIZE
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.security.cert.CertPath.serialVersionUID.

Constructor Detail

OpenSSLX509CertPathback to summary
pack-priv OpenSSLX509CertPath(List<? extends X509Certificate> certificates)

Method Detail

fromEncodingback to summary
private static CertPath fromEncoding(InputStream inStream, OpenSSLX509CertPath.Encoding encoding) throws CertificateException
fromEncodingback to summary
pack-priv static CertPath fromEncoding(InputStream inStream, String encoding) throws CertificateException
fromEncodingback to summary
pack-priv static CertPath fromEncoding(InputStream inStream) throws CertificateException
fromPkcs7Encodingback to summary
private static CertPath fromPkcs7Encoding(InputStream inStream) throws CertificateException
fromPkiPathEncodingback to summary
private static CertPath fromPkiPathEncoding(InputStream inStream) throws CertificateException
getCertificatesback to summary
public List<? extends Certificate> getCertificates()

Implements abstract java.security.cert.CertPath.getCertificates.

Doc from java.security.cert.CertPath.getCertificates.

Returns the list of certificates in this certification path. The List returned must be immutable and thread-safe.

Returns:List<? extends Certificate>

an immutable List of Certificates (may be empty, but not null)

Annotations
@Override
getEncodedback to summary
private byte[] getEncoded(OpenSSLX509CertPath.Encoding encoding) throws CertificateEncodingException
getEncodedback to summary
public byte[] getEncoded() throws CertificateEncodingException

Implements abstract java.security.cert.CertPath.getEncoded.

Doc from java.security.cert.CertPath.getEncoded.

Returns the encoded form of this certification path, using the default encoding.

Returns:byte[]

the encoded bytes

Annotations
@Override
Exceptions
CertificateEncodingException:
if an encoding error occurs
getEncodedback to summary
public byte[] getEncoded(String encoding) throws CertificateEncodingException

Implements abstract java.security.cert.CertPath.getEncoded.

Doc from java.security.cert.CertPath.getEncoded.

Returns the encoded form of this certification path, using the specified encoding.

Parameters
encoding:String

the name of the encoding to use

Returns:byte[]

the encoded bytes

Annotations
@Override
Exceptions
CertificateEncodingException:
if an encoding error occurs or the encoding requested is not supported
getEncodingsback to summary
public Iterator<String> getEncodings()

Implements abstract java.security.cert.CertPath.getEncodings.

Doc from java.security.cert.CertPath.getEncodings.

Returns an iteration of the encodings supported by this certification path, with the default encoding first. Attempts to modify the returned Iterator via its remove method result in an UnsupportedOperationException.

Returns:Iterator<String>

an Iterator over the names of the supported encodings (as Strings)

Annotations
@Override
getEncodingsIteratorback to summary
pack-priv static Iterator<String> getEncodingsIterator()
org.conscrypt back to summary

private final Enum OpenSSLX509CertPath.Encoding

extends Enum<OpenSSLX509CertPath.Encoding>
Class Inheritance

Supported encoding types for CerthPath. Used by the various APIs that encode this into bytes such as getEncoded().

Field Summary

Modifier and TypeField and Description
private final String
public static final OpenSSLX509CertPath.Encoding
public static final OpenSSLX509CertPath.Encoding

Constructor Summary

AccessConstructor and Description
private
Encoding(String apiName)

Method Summary

Modifier and TypeMethod and Description
pack-priv static OpenSSLX509CertPath.Encoding
public static OpenSSLX509CertPath.Encoding
public static OpenSSLX509CertPath.Encoding[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

apiNameback to summary
private final String apiName
PKCS7back to summary
public static final OpenSSLX509CertPath.Encoding PKCS7
PKI_PATHback to summary
public static final OpenSSLX509CertPath.Encoding PKI_PATH

Constructor Detail

Encodingback to summary
private Encoding(String apiName)

Method Detail

findByApiNameback to summary
pack-priv static OpenSSLX509CertPath.Encoding findByApiName(String apiName) throws CertificateEncodingException
valueOfback to summary
public static OpenSSLX509CertPath.Encoding valueOf(String name)
valuesback to summary
public static OpenSSLX509CertPath.Encoding[] values()