HandshakeCompletedEvent.GetPeerCertificates Method

Definition

Returns the identity of the peer which was established as part of defining the session.

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

Returns

Certificate[]

an ordered array of the peer certificates, with the peer's own certificate first followed by any certificate authorities.

Attributes

Exceptions

if the identity of the peer has not been verified.

Remarks

Java documentation for javax.net.ssl.HandshakeCompletedEvent.getPeerCertificates().

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