Documentation
    Preparing search index...

    Class RsaJwk

    The Jwk class, which has properties of the Jwk and a validator function

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • jwk: {
            alg?: string;
            e?: string;
            key_ops?: string[];
            kid?: string;
            kty: string;
            n?: string;
            use?: string;
            x5c?: string[];
            x5t?: string;
            "x5t#S256"?: string;
            x5u?: string;
        } & { e: string; kty: "RSA"; n: string }

      Returns RsaJwk

    Properties

    additional: Record<string, unknown>
    alg?: string
    e: string
    keyOps?: string[]
    kid?: string
    kty: "RSA"
    n: string
    use?: string
    x5c?: string[]
    x5t?: string
    x5tS256?: string
    x5u?: string

    Methods

    • The from function validates the Jwk type. An error will be thrown if the validation fails.

      Parameters

      • value: unknown

        The value that will be validated against the Jwk type

      Returns Jwk

      • new Jwk if the value passed in is validated.