Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidKey = errors.New("key is invalid")
ErrInvalidKey indicates taht the key is invalid.
View Source
var ErrKmsVerification = errors.New("kms: verification error")
ErrKmsVerification is an error shown when KMS token verification fails.
Functions ¶
func DisableCache ¶
func DisableCache(k *KMSJWT)
DisableCache disables cache on the client (on by default).
Types ¶
type Option ¶
type Option func(*KMSJWT)
Option is a function that modifies the way the verification method works.
func WithAlgorithm ¶
func WithCleanupInterval ¶
WithCleanupInterval changes the key cleanup interval if the cache is "on". By default, it's one minute.
func WithDefaultExpiration ¶
WithDefaultExpiration changes the default key expiration if the cache is "on". By default, cache expires after an hour.
func WithSigningAlgorithm ¶
WithSigningAlgorithm changes the algorighm used to sign and verify tokens. By default, "RSAES_OAEP_SHA_256" is used.
Click to show internal directories.
Click to hide internal directories.