Versions in this module Expand all Collapse all v0 v0.45.0 Jun 27, 2022 v0.44.0 Jun 27, 2022 Changes in this version + func GetSigningKey(key string, alg jwa.SignatureAlgorithm) (interface{}, error) + type ECDSASigner struct + func (s ECDSASigner) Algorithm() jwa.SignatureAlgorithm + func (s ECDSASigner) Sign(payload []byte, key interface{}) ([]byte, error) + func (s ECDSASigner) SignWithRand(payload []byte, key interface{}, r io.Reader) ([]byte, error) + type HMACSigner struct + func (s HMACSigner) Algorithm() jwa.SignatureAlgorithm + func (s HMACSigner) Sign(payload []byte, key interface{}) ([]byte, error) + type RSASigner struct + func (s RSASigner) Algorithm() jwa.SignatureAlgorithm + func (s RSASigner) Sign(payload []byte, key interface{}) ([]byte, error) + type Signer interface + Algorithm func() jwa.SignatureAlgorithm + Sign func(payload []byte, key interface{}) ([]byte, error) + func New(alg jwa.SignatureAlgorithm) (Signer, error)