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

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

    Hierarchy

    • UniffiAbstractObject
      • Credential

    Implements

    Index

    Properties

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

    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

    • {@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 Credential