CompositeTrustManager
class CompositeTrustManager(val trustManagers: List<TrustManager>, val identifier: String = "composite") : TrustManager
A TrustManager implementation which consults a list of other TrustManager instances.
getTrustPoints will return the trust points of all the included trust managers.
verify is implemented by trying each TrustManager in sequence and returning a TrustResult for the first one where TrustResult.isTrusted is true
. If none is found a TrustResult with TrustResult.isTrusted set to false
is returned.
Parameters
trustManagers
a list of TrustManagers that will be used for verification.
identifier
an identifier for the TrustManager.
Functions
Link copied to clipboard
Gets all trust points known to this TrustManager instance.
Link copied to clipboard
Checks if an entity identifying itself via a certificate chain is trusted.