public interface SSLInfo
Modifier and Type | Method and Description |
---|---|
List<X509Certificate> |
certificates()
Gets the server certificates that are in use.
|
List<String> |
ciphers() |
List<String> |
protocols() |
String |
providerName() |
List<String> ciphers()
List<String> protocols()
TLSv1.2
String providerName()
JDK
or OpenSSL
List<X509Certificate> certificates()
Gets the server certificates that are in use.
Note: The certificate information is found by making an HTTPS connection to
https://localhost:{port}/
and if any exceptions are thrown while
doing the lookup then an empty array is returned.
Using this information, you can find information such as the expiry date of your
certiticates by calling X509Certificate.getNotAfter()
.
Copyright © 2017–2019. All rights reserved.