Optional
algOptional
algorithmThe key algorithm, alias for JWK "alg" field.
Optional
crvOptional
curveThe elliptic curve type, alias for JWK "crv" field.
Optional
dOptional
dpOptional
dqOptional
eOptional
extOptional
extractableIndicates whether the private key is extractable, alias for JSK "ext" field.
Optional
kOptional
key_Alias for keyPairBits that throws if a complete key pair is not present.
Optional
keyImport/export of BinaryKeyPair structure used as an alternate serialization format for legacy reasons.
Optional
ktyOptional
nOptional
operationsOperations supported by the key, alias for JWK "key_ops" field.
Optional
othOptional
pOptional
pkcs8Import (write-only) of private keys encoded in PKCS #8 format.
Optional
privateThe private key, alias for JWK "d" field.
Optional
privateBinary alias to private key field. Automatically encodes/decodes the base-64 private key.
Alias for privateBits that throws if no private key is present.
Optional
publicImport/export of EC public key in SEC1/SPKI format. Maps to x & y fields internally.
Alias for publicBits that throws if no public key is present.
Optional
qOptional
qiOptional
sec1Import (write-only) of private keys encoded in SEC1 format.
Optional
spkiImport (write-only) of public keys encoded in SPKI format.
Optional
typeThe key type, alias for JWK "kty" field.
Optional
useOptional
xOptional
xBinary alias to the x field. Automatically encodes/decodes the base-64 x-point on EC public keys.
Optional
yOptional
yBinary alias to the y field. Automatically encodes/decodes the base-64 y-point on EC public keys.
Represents a cryptographic key.
Models keys as JWK. Advantages of this format: