Package web5.sdk.crypto
Object Jwa.Companion
-
- All Implemented Interfaces:
public class Jwa.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static Jwa.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final Jwaparse(String algorithmName)Parse algorithm name into Jwa. final JWSAlgorithmtoJwsAlgorithm(Jwa algorithm)Convert Jwa to nimbusds JWSAlgorithm. -
-
Method Detail
-
parse
final Jwa parse(String algorithmName)
Parse algorithm name into Jwa.
- Parameters:
algorithmName- name of the algorithm- Returns:
Jwa Json Web Algorithm
-
toJwsAlgorithm
final JWSAlgorithm toJwsAlgorithm(Jwa algorithm)
Convert Jwa to nimbusds JWSAlgorithm. Used to temporarily bridge the gap between moving from nimbusds Jwk methods to rolling our own Jwk methods
- Parameters:
algorithm- Jwa- Returns:
JWSAlgorithm nimbusds JWSAlgorithm
-
-
-
-