Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/authlete_deno/mod.ts>JWSAlg

Authlete Library for Deno
Latest
class JWSAlg
Re-export
import { JWSAlg } from "https://deno.land/x/authlete_deno@v1.2.10/mod.ts";

"alg" (Algorithm) Header Parameter Values for JWS.

For more details, see RFC 7518, 3.1. "alg" (Algorithm) Header Parameter Values for JWS.

Constructors

new
JWSAlg(
value: number,
string: string,
hashAlg?: HashAlg,
)

The private constructor.

Properties

optional
hashAlg: HashAlg

The hash algorithm.

Static Properties

readonly
ES256: JWSAlg

ES256 (7); ECDSA using P-256 and SHA-256.

readonly
ES384: JWSAlg

ES384 (8); ECDSA using P-384 and SHA-384.

readonly
ES512: JWSAlg

ES512 (9); ECDSA using P-521 and SHA-512.

readonly
HS256: JWSAlg

HS256 (1); HMAC using SHA-256.

readonly
HS384: JWSAlg

HS384 (2); HMAC using SHA-384.

readonly
HS512: JWSAlg

HS512 (3); HMAC using SHA-512.

readonly
NONE: JWSAlg

none (0); No digital signature or MAC performed.

readonly
PS256: JWSAlg

PS256 (10); RSASSA-PSS using SHA-256 and MGF1 with SHA-256.

readonly
PS384: JWSAlg

PS384 (11); RSASSA-PSS using SHA-384 and MGF1 with SHA-384.

readonly
PS512: JWSAlg

PS512 (12); RSASSA-PSS using SHA-512 and MGF1 with SHA-512.

readonly
RS256: JWSAlg

RS256 (4); RSASSA-PKCS-v1_5 using SHA-256.

readonly
RS384: JWSAlg

RS38 (5); RSASSA-PKCS-v1_5 using SHA-384.

readonly
RS512: JWSAlg

RS512 (6); RSASSA-PKCS-v1_5 using SHA-512.