iya-sts
    Preparing search index...

    Variable signPublishedDocumentAsync

    signPublishedDocumentAsync: (
        claims: any,
        issuer: string,
        lifetimeS: number,
        useCase: string,
    ) => Promise<string> = ...

    Type Declaration

      • (
            claims: any,
            issuer: string,
            lifetimeS: number,
            useCase: string,
        ): Promise<string>
      • signPublishedDocument(), with a realm key in the HSM signing off the event loop (stsCrypto.signJwsOffLoop(), #1955 P8 follow-up). A software key signs the same bytes, in place, as signPublishedDocument() does; every service caller awaits this one. The two share the plan (publishedDocumentPlan()) and differ only in the signing call.

        Parameters

        • claims: any

          the document's members

        • issuer: string

          the issuer

        • lifetimeS: number

          how long the signature is good for, in seconds

        • useCase: string

          whose x5c or x5u setting applies

        Returns Promise<string>

        a promise of the signed JWT