vertx / io.vertx.core.http / ServerWebSocket / peerCertificateChain

peerCertificateChain

abstract fun peerCertificateChain(): Array<X509Certificate>

Note: Java SE 5+ recommends to use javax.net.ssl.SSLSession#getPeerCertificates() instead of of javax.net.ssl.SSLSession#getPeerCertificateChain() which this method is based on. Use #sslSession() to access that method.

Exceptions

javax.net.ssl.SSLPeerUnverifiedException - SSL peer's identity has not been verified.

Return
an ordered array of the peer certificates. Returns null if connection is not SSL.

See Also
javax.net.ssl.SSLSession#getPeerCertificateChain()#sslSession()