@microsoft/dev-tunnels-ssh
Version:
SSH library for Dev Tunnels
18 lines • 910 B
TypeScript
import { RsaParameters, ECParameters } from '../publicKeyAlgorithm';
/**
* Provides *minimal* JWK import/export support for web keys.
*
* This code is redundant with some of the JWK import/export code in the separate
* `ssh-keys` library; that is intentional, and necessary to support a consistent
* interface for importing/exporting key parameters in the core `ssh` library.
*/
export declare class JsonWebKeyFormatter {
static formatRsa(rsa: RsaParameters, includePrivate?: boolean): JsonWebKey;
static parseRsa(jwk: JsonWebKey, includePrivate?: boolean): RsaParameters;
static formatEC(ec: ECParameters, includePrivate?: boolean): JsonWebKey;
static parseEC(jwk: JsonWebKey, includePrivate?: boolean): ECParameters;
private static formatBigInt;
private static parseBigInt;
private static base64UrlEncode;
}
//# sourceMappingURL=jsonWebKeyFormatter.d.ts.map