public final class JwtRsaSsaPkcs1Parameters extends JwtSignatureParameters
JwtRsaSsaPkcs1PublicKey and JwtRsaSsaPkcs1PrivateKey.
Standard: https://datatracker.ietf.org/doc/html/rfc7518
| Modifier and Type | Class and Description |
|---|---|
static class |
JwtRsaSsaPkcs1Parameters.Algorithm
The algorithm to be used for the signature computation.
|
static class |
JwtRsaSsaPkcs1Parameters.Builder
Builds a new JwtRsaSsaPkcs1Parameters instance.
|
static class |
JwtRsaSsaPkcs1Parameters.KidStrategy
Specifies how the "kid" header is handled.
|
| Modifier and Type | Field and Description |
|---|---|
static BigInteger |
F4 |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowKidAbsent()
If true, tokens without
"kid" header are allowed when verifying a token. |
static JwtRsaSsaPkcs1Parameters.Builder |
builder() |
boolean |
equals(Object o) |
JwtRsaSsaPkcs1Parameters.Algorithm |
getAlgorithm() |
JwtRsaSsaPkcs1Parameters.KidStrategy |
getKidStrategy() |
int |
getModulusSizeBits() |
BigInteger |
getPublicExponent() |
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 final BigInteger F4
public static JwtRsaSsaPkcs1Parameters.Builder builder()
public int getModulusSizeBits()
public BigInteger getPublicExponent()
public JwtRsaSsaPkcs1Parameters.KidStrategy getKidStrategy()
public JwtRsaSsaPkcs1Parameters.Algorithm getAlgorithm()
public boolean allowKidAbsent()
JwtSignatureParameters"kid" header are allowed when verifying a token.allowKidAbsent in class JwtSignatureParameterspublic 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 Parameters