CertificateFactory.GenerateCertPath Method

Definition

Overloads

GenerateCertPath(IList<Certificate>)

Generates a CertPath object and initializes it with a List of Certificates.

GenerateCertPath(Stream)

Generates a CertPath object and initializes it with the data read from the InputStream inStream.

GenerateCertPath(Stream, String)

Generates a CertPath object and initializes it with the data read from the InputStream inStream.

GenerateCertPath(IList<Certificate>)

Generates a CertPath object and initializes it with a List of Certificates.

[Android.Runtime.Register("generateCertPath", "(Ljava/util/List;)Ljava/security/cert/CertPath;", "")]
public Java.Security.Cert.CertPath? GenerateCertPath (System.Collections.Generic.IList<Java.Security.Cert.Certificate>? certificates);
[<Android.Runtime.Register("generateCertPath", "(Ljava/util/List;)Ljava/security/cert/CertPath;", "")>]
member this.GenerateCertPath : System.Collections.Generic.IList<Java.Security.Cert.Certificate> -> Java.Security.Cert.CertPath

Parameters

certificates
IList<Certificate>

a List of Certificates

Returns

a CertPath initialized with the supplied list of certificates

Attributes

Remarks

Generates a CertPath object and initializes it with a List of Certificates.

The certificates supplied must be of a type supported by the CertificateFactory. They will be copied out of the supplied List object.

Added in 1.4.

Java documentation for java.security.cert.CertificateFactory.generateCertPath(java.util.List<? extends java.security.cert.Certificate>).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

GenerateCertPath(Stream)

Generates a CertPath object and initializes it with the data read from the InputStream inStream.

[Android.Runtime.Register("generateCertPath", "(Ljava/io/InputStream;)Ljava/security/cert/CertPath;", "")]
public Java.Security.Cert.CertPath? GenerateCertPath (System.IO.Stream? inStream);
[<Android.Runtime.Register("generateCertPath", "(Ljava/io/InputStream;)Ljava/security/cert/CertPath;", "")>]
member this.GenerateCertPath : System.IO.Stream -> Java.Security.Cert.CertPath

Parameters

inStream
Stream

an InputStream containing the data

Returns

a CertPath initialized with the data from the InputStream

Attributes

Exceptions

if parsing problems are detected.

Remarks

Generates a CertPath object and initializes it with the data read from the InputStream inStream. The data is assumed to be in the default encoding. The name of the default encoding is the first element of the Iterator returned by the #getCertPathEncodings getCertPathEncodings method.

Added in 1.4.

Java documentation for java.security.cert.CertificateFactory.generateCertPath(java.io.InputStream).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

GenerateCertPath(Stream, String)

Generates a CertPath object and initializes it with the data read from the InputStream inStream.

[Android.Runtime.Register("generateCertPath", "(Ljava/io/InputStream;Ljava/lang/String;)Ljava/security/cert/CertPath;", "")]
public Java.Security.Cert.CertPath? GenerateCertPath (System.IO.Stream? inStream, string? encoding);
[<Android.Runtime.Register("generateCertPath", "(Ljava/io/InputStream;Ljava/lang/String;)Ljava/security/cert/CertPath;", "")>]
member this.GenerateCertPath : System.IO.Stream * string -> Java.Security.Cert.CertPath

Parameters

inStream
Stream

an InputStream containing the data

encoding
String

the encoding used for the data

Returns

a CertPath initialized with the data from the InputStream

Attributes

Exceptions

if parsing problems are detected.

if the provider does not implement this method.

Remarks

Generates a CertPath object and initializes it with the data read from the InputStream inStream. The data is assumed to be in the specified encoding. See the CertPath Encodings section in the Java Cryptography Architecture Standard Algorithm Name Documentation for information about standard encoding names and their formats.

Added in 1.4.

Java documentation for java.security.cert.CertificateFactory.generateCertPath(java.io.InputStream, java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to