CredentialRef

A reference to a credential which has been persisted in CC.

This is because credentials can be quite large; we'd really like to avoid passing them back and forth across the FFI boundary more than is strictly required. Therefore, we use this type which is substantially more compact.

Created with crate::CoreCryptoContext::add_credential.

This reference is not a literal reference in memory. It is instead the key from which a credential can be retrieved. This means that it is stable over time and across the FFI boundary.

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 clientId(): ClientId

Get the client id associated with this credential ref

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 publicKey(): ByteArray

Get the public key associated with this credential ref

Link copied to clipboard
open override fun signatureScheme(): UShort

Get the signature scheme of this credential ref.

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

Get the type of this credential ref.

Link copied to clipboard
fun uniffiClonePointer(): Pointer