다음을 통해 공유


JarEntry.GetCertificates Method

Definition

Returns the Certificate objects for this entry, or null if none.

[Android.Runtime.Register("getCertificates", "()[Ljava/security/cert/Certificate;", "GetGetCertificatesHandler")]
public virtual Java.Security.Cert.Certificate[]? GetCertificates ();
[<Android.Runtime.Register("getCertificates", "()[Ljava/security/cert/Certificate;", "GetGetCertificatesHandler")>]
abstract member GetCertificates : unit -> Java.Security.Cert.Certificate[]
override this.GetCertificates : unit -> Java.Security.Cert.Certificate[]

Returns

the Certificate objects for this entry, or null if none.

Attributes

Remarks

Returns the Certificate objects for this entry, or null if none. This method can only be called once the JarEntry has been completely verified by reading from the entry input stream until the end of the stream has been reached. Otherwise, this method will return null.

The returned certificate array comprises all the signer certificates that were used to verify this entry. Each signer certificate is followed by its supporting certificate chain (which may be empty). Each signer certificate and its supporting certificate chain are ordered bottom-to-top (i.e., with the signer certificate first and the (root) certificate authority last).

Java documentation for java.util.jar.JarEntry.getCertificates().

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

See also