Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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 *kmsClient)
DisableCache disables cache on the client (on by default).
Types ¶
type Option ¶
type Option func(*kmsClient)
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.