The SecurityInfo interface contains methods that provide information about a secure connection. Some of the methods of this interface are as follows:
- getProtocolName(): It returns the name of the protocol, such as SSL.
- getProtocolVersion(): It returns the version number of the secured protocol.
- getServerCertificate(): It returns the certificate used to obtain a secure connection.