public interface TrustDecider
| Modifier and Type | Method and Description |
|---|---|
boolean |
isTrustedPeer(SSLCertificate certificate)
Deprecated.
Decides if the peer certificate is trusted or not.
|
boolean isTrustedPeer(SSLCertificate certificate)
SSLException "Untrusted Certificate!"
is thrown and the connection is closed.
To set your own TrustDecider use the method setTrustDecieder of class
SSLContext.
If no trust decider is set every certificate is trusted.
certificate - the certificate (list) of the peer or null if the
peer has no certificatetrue if the peer is trusted or false otherwise