@unvision/jose
Version:
Implementation of the RFCs of the JOSE Working Group.
29 lines (28 loc) • 982 B
TypeScript
/// <reference types="node" />
import { KeyObject } from 'crypto';
import { JsonWebKeyParameters } from '../jsonwebkey.parameters';
import { JsonWebKeyAlgorithm } from './jsonwebkey.algorithm';
/**
* Implementation of the **Octet Sequence** JSON Web Key Algorithm.
*
* @see https://www.rfc-editor.org/rfc/rfc7518.html#section-6.4
*/
export declare class OctKeyAlgorithm implements JsonWebKeyAlgorithm {
/**
* Private Parameters of the JSON Web Key Octet Sequence Algorithm.
*/
readonly privateParameters: string[];
/**
* Validates the provided JSON Web Key Parameters.
*
* @param parameters Parameters of the JSON Web Key.
*/
validateParameters(parameters: JsonWebKeyParameters): void;
/**
* Loads the provided JSON Web Key into a NodeJS Crypto Key.
*
* @param parameters Parameters of the JSON Web Key.
* @returns NodeJS Crypto Key.
*/
loadCryptoKey(parameters: JsonWebKeyParameters): KeyObject;
}