package
1.7.0
Repository: https://github.com/google/tink.git
Documentation: pkg.go.dev

# Functions

ES256Template creates a JWT key template for JWA algorithm "ES256", which is digital signature with the NIST P-256 curve.
ES384Template creates a JWT key template for JWA algorithm "ES384", which is digital signature with the NIST P-384 curve.
ES512Template creates a JWT key template for JWA algorithm "ES512", which is digital signature with the NIST P-521 curve.
HS256Template creates a JWT key template for JWA algorithm "HS256", which is a HMAC-SHA256 with a 32 byte key.
HS384Template creates a JWT key template for JWA algorithm "HS384", which is a HMAC-SHA384 with a 48 byte key.
HS512Template creates a JWT key template for JWA algorithm "HS512", which is a HMAC-SHA512 with a 64 byte key.
JWKSetFromPublicKeysetHandle converts a Tink KeysetHandle with JWT keys into a Json Web Key (JWK) set.
JWKSetToPublicKeysetHandle converts a Json Web Key (JWK) set into a Tink KeysetHandle.
NewMAC generates a new instance of the JWT MAC primitive.
NewRawJWT constructs a new RawJWT token based on the RawJwtOptions provided.
NewRawJWTFromJSON builds a RawJWT from a marshaled JSON.
NewSigner generates a new instance of the JWT Signer primitive.
NewValidator creates a new Validator.
NewVerifier generates a new instance of the JWT Verifier primitive.
RawES256Template creates a JWT key template for JWA algorithm "ES256", which is digital signature with the NIST P-256 curve.
RawES384Template creates a JWT key template for JWA algorithm "ES384", which is digital signature with the NIST P-384 curve.
RawES512Template creates a JWT key template for JWA algorithm "ES512", which is digital signature with the NIST P-521 curve.
RawHS256Template creates a JWT key template for JWA algorithm "HS256", which is a HMAC-SHA256 with a 32 byte key.
RawHS384Template creates a JWT key template for JWA algorithm "HS384", which is a HMAC-SHA384 with a 48 byte key.
RawHS512Template creates a JWT key template for JWA algorithm "HS512", which is a HMAC-SHA512 with a 64 byte key.

# Structs

RawJWT is an unsigned JSON Web Token (JWT), https://tools.ietf.org/html/rfc7519.
RawJWTOptions represent an unsigned JSON Web Token (JWT), https://tools.ietf.org/html/rfc7519.
Validator defines how JSON Web Tokens (JWT) should be validated.
ValidatorOpts define validation options for JWT validators.
VerifiedJWT is a verified JWT token.

# Interfaces

MAC is an interface for authenticating and verifying JSON Web Tokens (JWT) with JSON Web Signature (JWS) MAC.
Signer is the interface for signing JWTs.
Verifier is the interface for verifying signed JWTs.