public final class JwtMacConfig extends Object
Registry all
instances of JwtMac key types supported in a particular release of Tink.
To register all JwtMac key types provided in the latest Tink version one can do:
JwtMacConfig.register();
For more information on how to obtain and use instances of JwtMac, see KeysetHandle.getPrimitive(java.lang.Class<P>).
| Modifier and Type | Field and Description |
|---|---|
static String |
JWT_HMAC_TYPE_URL |
| Modifier and Type | Method and Description |
|---|---|
static void |
register()
Tries to register with the
Registry all instances of KeyManager needed to handle JWT key types supported in Tink. |
public static final String JWT_HMAC_TYPE_URL
public static void register()
throws GeneralSecurityException
Registry all instances of KeyManager needed to handle JWT key types supported in Tink.GeneralSecurityException