public abstract class JwtSignaturePublicKey extends Key
JwtPublicKeyVerify interface).| Constructor and Description |
|---|
JwtSignaturePublicKey() |
| Modifier and Type | Method and Description |
|---|---|
abstract Optional<String> |
getKid()
Returns the "kid" to be used for this key (https://www.rfc-editor.org/rfc/rfc7517#section-4.5).
|
abstract JwtSignatureParameters |
getParameters()
Returns the parameters of this key.
|
equalsKey, getIdRequirementOrNullpublic abstract Optional<String> getKid()
Note that the "kid" is not necessarily related to Tink's "Key ID" in the keyset.
If present, this kid will be written into the kid header during computeMacAndEncode. If absent, no kid will be written.
If present, and the kid header is present, the contents of the kid header
needs to match the return value of this function.
Note that getParameters.allowKidAbsent() specifies if omitting the kid
header is allowed. Of course, if getParameters.allowKidAbsent() is true, then getKid must not return an empty Optional.
public abstract JwtSignatureParameters getParameters()
getParameters in class Key