@opentdf/sdk
    Preparing search index...

    Function reqSignature

    • Generate a JWT (or JWS-ed object)

      Parameters

      • toSign: unknown

        the data to sign. Interpreted as JwtPayload but AFAIK this isn't required

      • privateKey: PrivateKey

        an opaque RSA private key

      • cryptoService: CryptoService

        the crypto service to use for signing

      • jwtProtectedHeader: JwtHeader = ...

        optional JWT header, defaults to RS256

      Returns Promise<string>

      the signed object, with a JWS header. This may be a JWT.