Class JwtSignaturePublicKey

    • Constructor Detail

      • JwtSignaturePublicKey

        public JwtSignaturePublicKey()
    • Method Detail

      • getKid

        public abstract java.util.Optional<java.lang.String> getKid()
        Returns the "kid" to be used for this key (https://www.rfc-editor.org/rfc/rfc7517#section-4.5).

        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.