TrustPinSDKPlatform class abstract
The platform interface for the TrustPin SDK plugin.
Platform-specific implementations should extend this class and override all methods. The default implementation uses MethodChannelTrustPinSDK.
- Inheritance
-
- Object
- PlatformInterface
- TrustPinSDKPlatform
- Implementers
Constructors
- TrustPinSDKPlatform.new()
- Constructs a TrustPinSDKPlatform.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
fetchCertificate(
String host, {int port = 443, String? instanceId}) → Future< String> -
Fetches the TLS leaf certificate from
hostas a PEM string. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setLogLevel(
String logLevel, {String? instanceId}) → Future< void> - Sets the logging verbosity level.
-
setup(
String organizationId, String projectId, String publicKey, {Uri? configurationURL, String mode = 'strict', String? instanceId}) → Future< void> - Initializes the TrustPin SDK with the given credentials.
-
toString(
) → String -
A string representation of this object.
inherited
-
verify(
String domain, String certificate, {String? instanceId}) → Future< void> -
Verifies a PEM certificate against configured pins for
domain.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ TrustPinSDKPlatform
-
The default instance of TrustPinSDKPlatform to use.
getter/setter pair