Package com.google.crypto.tink.jwt
Class JwtMacConfig
- java.lang.Object
-
- com.google.crypto.tink.jwt.JwtMacConfig
-
public final class JwtMacConfig extends java.lang.ObjectStatic methods and constants for registering with theRegistryall instances ofJwtMackey types supported in a particular release of Tink.To register all
JwtMackey types provided in the latest Tink version one can do:JwtMacConfig.register();For more information on how to obtain and use instances of
JwtMac, seeKeysetHandle.getPrimitive(com.google.crypto.tink.Configuration, java.lang.Class<P>).
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringJWT_HMAC_TYPE_URL
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidregister()Tries to register with theRegistryall instances ofKeyManagerneeded to handle JWT key types supported in Tink.
-
-
-
Method Detail
-
register
public static void register() throws java.security.GeneralSecurityExceptionTries to register with theRegistryall instances ofKeyManagerneeded to handle JWT key types supported in Tink.- Throws:
java.security.GeneralSecurityException
-
-