@wireapp/core-crypto
    Preparing search index...

    Class 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 [CoreCryptoContext::add_credential][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.

    Hierarchy

    • UniffiAbstractObject
      • CredentialRef

    Implements

    Index

    Properties

    "[destructorGuardSymbol]": UniffiRustArcPtr
    "[pointerLiteralSymbol]": bigint
    "[uniffiTypeNameSymbol]": "CredentialRef"

    Methods

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

      Basic credentials have no defined earliest validity and will always return 0.

      Returns bigint

    • Get the public key associated with this credential ref

      Returns ArrayBuffer

    • Get the signature scheme of this credential ref.

      Returns number

    • {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}

      Returns void

    • A convenience method to use this object, then destroy it after its use.

      Type Parameters

      • T

      Parameters

      • block: (obj: this) => T

      Returns T

    • Parameters

      • obj: any

      Returns obj is CredentialRef