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

    Interface CredentialInterface

    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].

    interface CredentialInterface {
        earliestValidity(): bigint;
        type(): CredentialType;
    }

    Implemented by

    Index

    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