
io.muserver.SSLInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mu-server Show documentation
Show all versions of mu-server Show documentation
A simple but powerful web server framework
The newest version!
package io.muserver;
import java.security.cert.X509Certificate;
import java.util.List;
/**
* Information about the SSL settings being used by the server
*/
public interface SSLInfo {
/**
* @return An unmodifiable list of ciphers supported, in preference order
*/
List ciphers();
/**
* @return An unmodifiable list of protocols supported, such as TLSv1.2
*/
List protocols();
/**
* @return Gets the SSL provider, e.g. JDK
or OpenSSL
*/
String providerName();
/**
* 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 {@link X509Certificate#getNotAfter()}.
* @return An ordered list of server certificates, with the server's own certificate first followed by any certificate authorities.
*/
List certificates();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy