public final class ConnectionRequest.SSLCertificate extends Object
The recommended approach to SSL Pinning is to override the ConnectionRequest.checkSSLCertificates(com.codename1.io.ConnectionRequest.SSLCertificate[])
method in your ConnectionRequest
object, and check the certificates that are provided
as a parameter. This callback if fired before sending data to the server, but after
the SSL handshake is complete so that you have an opportunity to kill the request before sending
your POST data.
Example:
{@code ConnectionRequest req = new ConnectionRequest() {
Constructor and Description |
---|
SSLCertificate() |
Modifier and Type | Method and Description |
---|---|
String |
getCertificteAlgorithm()
Gets the algorithm used to encode the fingerprint.
|
String |
getCertificteUniqueKey()
Gets a fingerprint for the SSL certificate encoded using the algorithm
specified by
getCertificteAlgorithm() |
public String getCertificteUniqueKey()
getCertificteAlgorithm()
public String getCertificteAlgorithm()