Package-level declarations

Types

Link copied to clipboard
class TrustPin

TrustPin SSL certificate pinning SDK for JVM and Android.

Link copied to clipboard
data class TrustPinConfiguration(val organizationId: String, val projectId: String, val publicKey: String, val mode: TrustPinMode = TrustPinMode.STRICT, val configurationURL: URL? = null)

Configuration values for a TrustPin instance.

Link copied to clipboard
sealed class TrustPinError : Exception

Exception types raised by TrustPin.

Link copied to clipboard

Verbosity control for TrustPin log output.

Link copied to clipboard
fun interface TrustPinLogSink

Destination for TrustPin SDK log output.

Link copied to clipboard

Behaviour selector for domains that are not registered in the pinning configuration.

Link copied to clipboard

Observer of certificate-pinning validation outcomes.

Functions

Link copied to clipboard
fun fromAssets(context: ERROR CLASS: Symbol not found for Context, fileName: String = "trustpin.json"): TrustPinConfiguration

Recommended Android setup — loads a TrustPinConfiguration from a JSON file bundled in the application's assets/ directory.

Link copied to clipboard
@JvmName(name = "fromAssetsForCompanion")
fun TrustPinConfiguration.Companion.fromAssets(context: ERROR CLASS: Symbol not found for Context, fileName: String = "trustpin.json"): TrustPinConfiguration

Kotlin call-site sugar so customers can write TrustPinConfiguration.fromAssets(context).

Link copied to clipboard
fun TrustPinConfiguration.withAndroidStorage(context: ERROR CLASS: Symbol not found for Context): TrustPinConfiguration

Programmatic Android setup — wires this configuration to the Android Context and returns the same instance.