jose-browser-runtime
Advanced tools
Comparing version 3.10.0 to 3.11.0
export class JOSEError extends Error { | ||
constructor(message) { | ||
super(message); | ||
this.code = 'ERR_JOSE_GENERIC'; | ||
this.code = JOSEError.code; | ||
this.name = this.constructor.name; | ||
@@ -11,6 +11,7 @@ if (Error.captureStackTrace) { | ||
} | ||
JOSEError.code = 'ERR_JOSE_GENERIC'; | ||
export class JWTClaimValidationFailed extends JOSEError { | ||
constructor(message, claim = 'unspecified', reason = 'unspecified') { | ||
super(message); | ||
this.code = 'ERR_JWT_CLAIM_VALIDATION_FAILED'; | ||
this.code = JWTClaimValidationFailed.code; | ||
this.claim = claim; | ||
@@ -20,77 +21,90 @@ this.reason = reason; | ||
} | ||
JWTClaimValidationFailed.code = 'ERR_JWT_CLAIM_VALIDATION_FAILED'; | ||
export class JOSEAlgNotAllowed extends JOSEError { | ||
constructor() { | ||
super(...arguments); | ||
this.code = 'ERR_JOSE_ALG_NOT_ALLOWED'; | ||
this.code = JOSEAlgNotAllowed.code; | ||
} | ||
} | ||
JOSEAlgNotAllowed.code = 'ERR_JOSE_ALG_NOT_ALLOWED'; | ||
export class JOSENotSupported extends JOSEError { | ||
constructor() { | ||
super(...arguments); | ||
this.code = 'ERR_JOSE_NOT_SUPPORTED'; | ||
this.code = JOSENotSupported.code; | ||
} | ||
} | ||
JOSENotSupported.code = 'ERR_JOSE_NOT_SUPPORTED'; | ||
export class JWEDecryptionFailed extends JOSEError { | ||
constructor() { | ||
super(...arguments); | ||
this.code = 'ERR_JWE_DECRYPTION_FAILED'; | ||
this.code = JWEDecryptionFailed.code; | ||
this.message = 'decryption operation failed'; | ||
} | ||
} | ||
JWEDecryptionFailed.code = 'ERR_JWE_DECRYPTION_FAILED'; | ||
export class JWEInvalid extends JOSEError { | ||
constructor() { | ||
super(...arguments); | ||
this.code = 'ERR_JWE_INVALID'; | ||
this.code = JWEInvalid.code; | ||
} | ||
} | ||
JWEInvalid.code = 'ERR_JWE_INVALID'; | ||
export class JWSInvalid extends JOSEError { | ||
constructor() { | ||
super(...arguments); | ||
this.code = 'ERR_JWS_INVALID'; | ||
this.code = JWSInvalid.code; | ||
} | ||
} | ||
JWSInvalid.code = 'ERR_JWS_INVALID'; | ||
export class JWTInvalid extends JOSEError { | ||
constructor() { | ||
super(...arguments); | ||
this.code = 'ERR_JWT_INVALID'; | ||
this.code = JWTInvalid.code; | ||
} | ||
} | ||
JWTInvalid.code = 'ERR_JWT_INVALID'; | ||
export class JWKInvalid extends JOSEError { | ||
constructor() { | ||
super(...arguments); | ||
this.code = 'ERR_JWK_INVALID'; | ||
this.code = JWKInvalid.code; | ||
} | ||
} | ||
JWKInvalid.code = 'ERR_JWK_INVALID'; | ||
export class JWKSInvalid extends JOSEError { | ||
constructor() { | ||
super(...arguments); | ||
this.code = 'ERR_JWKS_INVALID'; | ||
this.code = JWKSInvalid.code; | ||
} | ||
} | ||
JWKSInvalid.code = 'ERR_JWKS_INVALID'; | ||
export class JWKSNoMatchingKey extends JOSEError { | ||
constructor() { | ||
super(...arguments); | ||
this.code = 'ERR_JWKS_NO_MATCHING_KEY'; | ||
this.code = JWKSNoMatchingKey.code; | ||
this.message = 'no applicable key found in the JSON Web Key Set'; | ||
} | ||
} | ||
JWKSNoMatchingKey.code = 'ERR_JWKS_NO_MATCHING_KEY'; | ||
export class JWKSMultipleMatchingKeys extends JOSEError { | ||
constructor() { | ||
super(...arguments); | ||
this.code = 'ERR_JWKS_MULTIPLE_MATCHING_KEYS'; | ||
this.code = JWKSMultipleMatchingKeys.code; | ||
this.message = 'multiple matching keys found in the JSON Web Key Set'; | ||
} | ||
} | ||
JWKSMultipleMatchingKeys.code = 'ERR_JWKS_MULTIPLE_MATCHING_KEYS'; | ||
export class JWSSignatureVerificationFailed extends JOSEError { | ||
constructor() { | ||
super(...arguments); | ||
this.code = 'ERR_JWS_SIGNATURE_VERIFICATION_FAILED'; | ||
this.code = JWSSignatureVerificationFailed.code; | ||
this.message = 'signature verification failed'; | ||
} | ||
} | ||
JWSSignatureVerificationFailed.code = 'ERR_JWS_SIGNATURE_VERIFICATION_FAILED'; | ||
export class JWTExpired extends JWTClaimValidationFailed { | ||
constructor() { | ||
super(...arguments); | ||
this.code = 'ERR_JWT_EXPIRED'; | ||
this.code = JWTExpired.code; | ||
} | ||
} | ||
JWTExpired.code = 'ERR_JWT_EXPIRED'; |
export declare class JOSEError extends Error { | ||
static code: string; | ||
code: string; | ||
@@ -6,2 +7,3 @@ constructor(message?: string); | ||
export declare class JWTClaimValidationFailed extends JOSEError { | ||
static code: string; | ||
code: string; | ||
@@ -13,8 +15,11 @@ claim: string; | ||
export declare class JOSEAlgNotAllowed extends JOSEError { | ||
static code: string; | ||
code: string; | ||
} | ||
export declare class JOSENotSupported extends JOSEError { | ||
static code: string; | ||
code: string; | ||
} | ||
export declare class JWEDecryptionFailed extends JOSEError { | ||
static code: string; | ||
code: string; | ||
@@ -24,17 +29,23 @@ message: string; | ||
export declare class JWEInvalid extends JOSEError { | ||
static code: string; | ||
code: string; | ||
} | ||
export declare class JWSInvalid extends JOSEError { | ||
static code: string; | ||
code: string; | ||
} | ||
export declare class JWTInvalid extends JOSEError { | ||
static code: string; | ||
code: string; | ||
} | ||
export declare class JWKInvalid extends JOSEError { | ||
static code: string; | ||
code: string; | ||
} | ||
export declare class JWKSInvalid extends JOSEError { | ||
static code: string; | ||
code: string; | ||
} | ||
export declare class JWKSNoMatchingKey extends JOSEError { | ||
static code: string; | ||
code: string; | ||
@@ -44,2 +55,3 @@ message: string; | ||
export declare class JWKSMultipleMatchingKeys extends JOSEError { | ||
static code: string; | ||
code: string; | ||
@@ -49,2 +61,3 @@ message: string; | ||
export declare class JWSSignatureVerificationFailed extends JOSEError { | ||
static code: string; | ||
code: string; | ||
@@ -54,3 +67,4 @@ message: string; | ||
export declare class JWTExpired extends JWTClaimValidationFailed { | ||
static code: string; | ||
code: string; | ||
} |
{ | ||
"name": "jose-browser-runtime", | ||
"version": "3.10.0", | ||
"version": "3.11.0", | ||
"description": "(Browser Runtime) 'JSON Web Almost Everything' - JWA, JWS, JWE, JWT, JWK with no dependencies", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
134654
3458