Credential

A cryptographic credential.

This is tied to a particular client via either its client id or certificate bundle, depending on its credential type, but is independent of any client instance or storage.

To attach to a particular client instance and store, see crate::CoreCryptoContext::add_credential.

Constructors

Link copied to clipboard
constructor(pointer: Pointer)
constructor(noPointer: NoPointer)

This constructor can be used to instantiate a fake object. Only used for tests. Any attempt to actually use an object constructed this way will fail as there is no connected Rust object.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun destroy()
Link copied to clipboard
open override fun earliestValidity(): ULong

Get the earliest possible validity of this credential, expressed as seconds after the unix epoch.

Link copied to clipboard
open override fun type(): CredentialType

Get the type of this credential.

Link copied to clipboard
fun uniffiClonePointer(): Pointer