Generates an asymmetric JWK.

The functions always need to return the same value.

interface JwkGenerator {
    alg: AsymmetricSigningAlgorithm;
    getPrivateKey: (() => Promise<AlgJwk>);
    getPublicKey: (() => Promise<AlgJwk>);
}

Implemented by

Properties

alg: AsymmetricSigningAlgorithm

The algorithm used for the keys.

getPrivateKey: (() => Promise<AlgJwk>)

Type declaration

    • (): Promise<AlgJwk>
    • Returns Promise<AlgJwk>

      The private key of the asymmetric JWK.

getPublicKey: (() => Promise<AlgJwk>)

Type declaration

    • (): Promise<AlgJwk>
    • Returns Promise<AlgJwk>

      The public key of the asymmetric JWK.