CredentialRef

A compact reference to a credential that has been persisted in CoreCrypto.

Credentials can be quite large; this type avoids passing them back and forth across the FFI boundary more than strictly required.

Created by calling add_credential on a CoreCryptoContext.

This reference is not a literal in-memory reference. It is instead the key from which a credential can be retrieved, and 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 ciphersuite(): Ciphersuite

Get the ciphersuite of this credential ref.

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

Get the SHA256 hash of the public key associated with this credential ref.

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

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