package
2.2.0
Repository: https://github.com/tink-crypto/tink-go.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.
IsExpirationErr returns true if err was returned by a JWT verification for a token with a valid signature that is expired.
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.
PS256_2048_F4_Key_Template creates a JWT key template for JWA algorithm "PS256", which is digital signature with RSA-SSA-PSS, a 2048 bit modulus, and SHA256.
PS256_3072_F4_Key_Template creates a JWT key template for JWA algorithm "PS256", which is digital signature with RSA-SSA-PSS, a 3072 bit modulus, and SHA256.
PS384_3072_F4_Key_Template creates a JWT key template for JWA algorithm "PS384", which is digital signature with RSA-SSA-PSS, a 3072 bit modulus, and SHA384.
PS512_4096_F4_Key_Template creates a JWT key template for JWA algorithm "PS512", which is digital signature with RSA-SSA-PSS, a 4096 bit modulus, and SHA512.
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.
RawPS256_2048_F4_Key_Template creates a JWT key template for JWA algorithm "PS256", which is digital signature with RSA-SSA-PSS, a 2048 bit modulus, and SHA256.
RawPS256_3072_F4_Key_Template creates a JWT key template for JWA algorithm "PS256", which is digital signature with RSA-SSA-PSS, a 3072 bit modulus, and SHA256.
RawPS384_3072_F4_Key_Template creates a JWT key template for JWA algorithm "PS384", which is digital signature with RSA-SSA-PSS, a 3072 bit modulus, and SHA384.
RawPS512_4096_F4_Key_Template creates a JWT key template for JWA algorithm "PS512", which is digital signature with RSA-SSA-PSS, a 4096 bit modulus, and SHA512.
RawRS256_2048_F4_Key_Template creates a JWT key template for JWA algorithm "RS256", which is digital signature with RSA-SSA-PKCS1 and SHA256.
RawRS256_3072_F4_Key_Template creates a JWT key template for JWA algorithm "RS256", which is digital signature with RSA-SSA-PKCS1 and SHA256.
RawRS384_3072_F4_Key_Template creates a JWT key template for JWA algorithm "RS384", which is digital signature with RSA-SSA-PKCS1 and SHA384.
RawRS512_4096_F4_Key_Template creates a JWT key template for JWA algorithm "RS512", which is digital signature with RSA-SSA-PKCS1 and SHA512.
RS256_2048_F4_Key_Template creates a JWT key template for JWA algorithm "RS256", which is digital signature with RSA-SSA-PKCS1 and SHA256.
RS256_3072_F4_Key_Template creates a JWT key template for JWA algorithm "RS256", which is digital signature with RSA-SSA-PKCS1 and SHA256.
RS384_3072_F4_Key_Template creates a JWT key template for JWA algorithm "RS384", which is digital signature with RSA-SSA-PKCS1 and SHA384.
RS512_4096_F4_Key_Template creates a JWT key template for JWA algorithm "RS512", which is digital signature with RSA-SSA-PKCS1 and SHA512.

# 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.