Package web5.sdk.crypto.keys
Class Jwk
-
-
Method Summary
Modifier and Type Method Description final StringgetAlg()The algorithm intended for use with the key (optional). final StringgetKty()The key type (e.g. final StringgetCrv()The curve used with the key (e.g. final StringgetX()The xcoordinate for elliptic curve keys, or the public key for OKP keys.final StringgetY()The ycoordinate for elliptic curve keys (optional).final StringgetD()The private key material, if present (optional). final StringcomputeThumbprint()Computes the thumbprint of the JWK. -
-
Method Detail
-
computeThumbprint
final String computeThumbprint()
Computes the thumbprint of the JWK.
A thumbprint is a cryptographic hash that uniquely identifies the JWK based on its key type and key material. This method utilizes Rust core logic to compute the thumbprint.
- Returns:
A base64url-encoded thumbprint string.
-
-
-
-