Package com.google.crypto.tink.jwt
Interface JwtPublicKeySignInternal
-
@Immutable public interface JwtPublicKeySignInternalInterface for creating a signed JWT, as described in RFC 7519 and RFC 7515.Security guarantees: similar to
PublicKeySign.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringsignAndEncodeWithKid(RawJwt token, java.util.Optional<java.lang.String> kid)Computes a signature, and encodes the JWT and the signature in the JWS compact serialization format.
-
-
-
Method Detail
-
signAndEncodeWithKid
java.lang.String signAndEncodeWithKid(RawJwt token, java.util.Optional<java.lang.String> kid) throws java.security.GeneralSecurityException
Computes a signature, and encodes the JWT and the signature in the JWS compact serialization format.- Throws:
java.security.GeneralSecurityException
-
-