Properties

Link copied to clipboard
abstract val alias: String
Link copied to clipboard
abstract val attestation: AttestationT?
Link copied to clipboard

The underlying JCA PrivateKey object.

The underlying JCA PrivateKey object.

Link copied to clipboard

Whether the signer may ask for user interaction when sign is called

Link copied to clipboard
Link copied to clipboard

The underlying SecKeyRef referencing the signer's private key. ⚠️ If returned from a keychain signer, must be used immediately. Do not store long term. ⚠️

Link copied to clipboard

Functions

Link copied to clipboard
abstract fun exportPrivateKey(): KmmResult<CryptoPrivateKey.WithPublicKey<*>>
Link copied to clipboard

Gets a platform verifier for signatures generated by this Signer.

Link copied to clipboard
fun Signer.makeVerifier(configure: ConfigurePlatformVerifier = null): KmmResult<Verifier>

Get a verifier for signatures generated by this Signer.

Link copied to clipboard
open suspend override fun sign(data: SignatureInput): SignatureResult<*>

Signs data. Might ask for user confirmation first if this Signer.

open suspend override fun sign(data: ByteArray): SignatureResult<*>
open suspend override fun sign(data: Sequence<ByteArray>): SignatureResult<*>
abstract suspend fun sign(data: SignatureInput, configure: DSLConfigureFn<SigningConfiguration> = null): SignatureResult<*>
open suspend fun sign(data: ByteArray, configure: DSLConfigureFn<SigningConfiguration> = null): SignatureResult<*>
open suspend fun sign(data: Sequence<ByteArray>, configure: DSLConfigureFn<SigningConfiguration> = null): SignatureResult<*>
Link copied to clipboard
suspend fun Signer.sign(tbsCertificate: TbsCertificate): KmmResult<X509Certificate>

Shorthand helper to create an X509Certificate by signing tbsCertificate

Shorthand helper to create a Pkcs10CertificationRequest by signing tbsCsr

Link copied to clipboard
open suspend override fun trySetupUninterruptedSigning(): KmmResult<Unit>

Try to ensure that the Signer is ready to immediately sign data, on a best-effort basis. For example, if user authorization allows signing for a given timeframe, this will prompts for authorization now.

open suspend fun trySetupUninterruptedSigning(configure: DSLConfigureFn<SigningConfiguration> = null): KmmResult<Unit>