public class JwtHmacParameters extends JwtMacParameters
JwtHmacKey.| Modifier and Type | Class and Description |
|---|---|
static class |
JwtHmacParameters.Algorithm
The algorithm to be used for the mac computation.
|
static class |
JwtHmacParameters.Builder
Helps creating a
JwtHmacParameters object. |
static class |
JwtHmacParameters.KidStrategy
Specifies how the "kid" header is handled.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowKidAbsent()
If true, tokens without
"kid" header are allowed when verifying a token. |
static JwtHmacParameters.Builder |
builder() |
boolean |
equals(Object o) |
JwtHmacParameters.Algorithm |
getAlgorithm() |
int |
getKeySizeBytes() |
JwtHmacParameters.KidStrategy |
getKidStrategy() |
int |
hashCode() |
boolean |
hasIdRequirement()
Returns true if a key created with the parameters in this object has to have a certain ID when
it is in a keyset.
|
String |
toString() |
public static JwtHmacParameters.Builder builder()
public int getKeySizeBytes()
public JwtHmacParameters.KidStrategy getKidStrategy()
public JwtHmacParameters.Algorithm getAlgorithm()
public boolean hasIdRequirement()
ParametersIn Tink, certain keys change their behavior depending on the key id (for example, an Aead object can prefix the ciphertext with the big endian encoding of the key id). If this is
the case, such a key should require a unique id in Key.getIdRequirementOrNull() and
return true here.
hasIdRequirement in class Parameterspublic boolean allowKidAbsent()
JwtMacParameters"kid" header are allowed when verifying a token.allowKidAbsent in class JwtMacParameters