Versions in this module Expand all Collapse all v1 v1.0.0 Mar 30, 2019 Changes in this version + const PS256 + const PS384 + const PS512 + type Provider struct + func LoadProvider(s Settings, t int) (Provider, error) + func NewProvider(t int) (Provider, error) + func NewProviderWithKeyURL(t int, keyURL string) (Provider, error) + func (p *Provider) AddPublicKey(key publickey.PublicKey) error + func (p *Provider) RemovePublicKey(keyid string) + func (p Provider) CurrentKey() publickey.PublicKey + func (p Provider) Header(h *jwt.Header) + func (p Provider) Sign(c []byte) ([]byte, error) + func (p Provider) Verify(data, sig []byte, h jwt.Header) error + type Settings struct + func NewSettings(key []byte, keyID string) (Settings, error) + func NewSettingsWithKeyURL(key []byte, keyID, keyURL string) (Settings, error)