JarURLConnection.GetCertificates Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Return the Certificate object for this connection if the URL for it points to a JAR file entry, null otherwise.
[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 object for this connection if the URL for it points to a JAR file entry, null otherwise.
- Attributes
Exceptions
if there is an I/O exception occurs while getting the
JarEntry
.
Remarks
Return the Certificate object for this connection if the URL for it points to a JAR file entry, null otherwise. This method can only be called once the connection has been completely verified by reading from the input stream until the end of the stream has been reached. Otherwise, this method will return null
Java documentation for java.net.JarURLConnection.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.