ServerTrustChallenge

class ServerTrustChallenge(val challenge: NetworkAuthenticationChallenge, onUserResponseReceived: (Boolean) -> Unit)

Represents a NetworkAuthenticationChallenge of type NetworkAuthenticationType.ServerTrust.

Since

200.2.0

Constructors

Link copied to clipboard
constructor(challenge: NetworkAuthenticationChallenge, onUserResponseReceived: (Boolean) -> Unit)

Properties

Link copied to clipboard
val challenge: NetworkAuthenticationChallenge

the NetworkAuthenticationChallenge that initiated this challenge.

Functions

Link copied to clipboard
fun distrust()

Distrusts the server. Note that trust or distrust can only be called once on a single ServerTrustChallenge object. After either function has been called once, further calls will have no effect.

Link copied to clipboard
fun trust()

Trusts the server. Note that trust or distrust can only be called once on a single ServerTrustChallenge object. After either function has been called once, further calls will have no effect.