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 a credential to a client instance and store it, call add_credential on a CoreCryptoContext.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Whether the current object has been destroyed and its reference is gone in the Rust side.

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 exportPem(): String

Export a PEM string containing the public portion of this credential.

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

Get the signature scheme of this credential.

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

Get the type of this credential.