Back to Jose

types

docs/types/README.md

6.2.125.6 KB
Original Source

types

Interfaces

InterfaceDescription
CompactDecryptResultCompact JWE decryption result.
CompactJWEHeaderParametersRecognized Compact JWE Header Parameters; additional members may also be present.
CompactJWSHeaderParametersRecognized Compact JWS Header Parameters; additional members may also be present.
CompactVerifyResultCompact JWS verification result.
CritOptionShared "crit" option for signing, verification, encryption, and decryption.
CryptoKeyStructuralFallbackStructural fallback used when the host CryptoKey type cannot be inferred.
DecryptOptionsJWE Decryption options.
EncryptOptionsJWE Encryption options.
FlattenedDecryptResultFlattened JWE JSON Serialization decryption result.
FlattenedJWEFlattened JWE JSON Serialization token.
FlattenedJWSFlattened JWS JSON Serialization token. The payload is an empty string when the unencoded payload option is used.
FlattenedJWSInputFlattened JWS verification input.
FlattenedVerifyResultFlattened JWS JSON Serialization verification result.
GeneralDecryptResultGeneral JWE JSON Serialization decryption result.
GeneralJWEGeneral JWE JSON Serialization token.
GeneralJWSGeneral JWS JSON Serialization token. The payload is an empty string when the unencoded payload option is used.
GeneralJWSInputGeneral JWS verification input.
GeneralVerifyResultGeneral JWS JSON Serialization verification result.
GetKeyFunctionDynamic key resolver for consuming operations.
JoseHeaderParametersHeader Parameters common to JWE and JWS.
JSONWebKeySetJSON Web Key Set.
JWEHeaderParametersRecognized JWE Header Parameters; additional members may also be present.
JWEKeyManagementHeaderParametersRecognized JWE Key Management-related Header Parameters.
JWK_AKP_PrivateConvenience interface for private AKP JSON Web Keys.
JWK_AKP_PublicConvenience interface for public AKP JSON Web Keys.
JWK_EC_PrivateConvenience interface for private EC JSON Web Keys.
JWK_EC_PublicConvenience interface for public EC JSON Web Keys.
JWK_octConvenience interface for "oct" JSON Web Keys.
JWK_OKP_PrivateConvenience interface for private OKP JSON Web Keys.
JWK_OKP_PublicConvenience interface for public OKP JSON Web Keys.
JWK_RSA_PrivateConvenience interface for private RSA JSON Web Keys.
JWK_RSA_PublicConvenience interface for public RSA JSON Web Keys.
JWSHeaderParametersRecognized JWS Header Parameters; additional members may also be present.
JWTClaimVerificationOptionsJWT Claims Set verification options.
JWTDecryptResultEncrypted JSON Web Token (JWT) decryption result.
JWTHeaderParametersRecognized signed JWT Header Parameters; additional members may also be present.
JWTPayloadRecognized JWT Claims Set members; additional members may also be present.
JWTVerifyResultSigned JSON Web Token (JWT) verification result.
KeyObjectNode.js KeyObject representation accepted as key input.
ProduceJWTShared fluent API for JWT-producing classes.
ResolvedKeyKey resolver result metadata.
SignOptionsJWS Signing options.
VerifyOptionsJWS Verification options.

Type Aliases

Type AliasDescription
AnyJWKDiscriminated union of supported JSON Web Key shapes, narrowed by the "kty" (Key Type) Parameter.
CryptoKeyThe runtime's Web Crypto CryptoKey representation accepted as key input.
JWKJSON Web Key (JWK). "RSA", "EC", "OKP", "AKP", and "oct" key types are supported.
JWKParametersGeneric JSON Web Key Parameters.
KeyInputKey or secret input accepted by all sign, verify, encrypt, and decrypt operations.