Versions in this module Expand all Collapse all v0 deprecated v0.9.1 Dec 6, 2021 Changes in this version + const AlgorithmKey + const KeyIDKey + const KeyOpDecrypt + const KeyOpDeriveBits + const KeyOpDeriveKey + const KeyOpEncrypt + const KeyOpSign + const KeyOpUnwrapKey + const KeyOpVerify + const KeyOpWrapKey + const KeyOpsKey + const KeyTypeKey + const KeyUsageKey + const X509CertChainKey + const X509CertThumbprintKey + const X509CertThumbprintS256Key + const X509URLKey + var ErrInvalidHeaderName = errors.New("invalid header name") + var ErrInvalidHeaderValue = errors.New("invalid value for header key") + var ErrUnsupportedCurve = errors.New("unsupported curve") + var ErrUnsupportedKty = errors.New("unsupported kty") + type CertificateChain struct + func (c *CertificateChain) Accept(v interface{}) error + func (c CertificateChain) Get() []*x509.Certificate + type ECDSAPrivateKey struct + func (k *ECDSAPrivateKey) ExtractMap(m map[string]interface{}) (err error) + func (k *ECDSAPrivateKey) UnmarshalJSON(data []byte) (err error) + func (k ECDSAPrivateKey) Curve() jwa.EllipticCurveAlgorithm + func (k ECDSAPrivateKey) MarshalJSON() (buf []byte, err error) + func (k ECDSAPrivateKey) Materialize() (interface{}, error) + func (k ECDSAPrivateKey) PopulateMap(m map[string]interface{}) (err error) + func (k ECDSAPrivateKey) PublicKey() (*ECDSAPublicKey, error) + func (k ECDSAPrivateKey) Thumbprint(hash crypto.Hash) ([]byte, error) + type ECDSAPublicKey struct + func (k *ECDSAPublicKey) ExtractMap(m map[string]interface{}) (err error) + func (k *ECDSAPublicKey) UnmarshalJSON(data []byte) (err error) + func (k ECDSAPublicKey) Curve() jwa.EllipticCurveAlgorithm + func (k ECDSAPublicKey) MarshalJSON() (buf []byte, err error) + func (k ECDSAPublicKey) Materialize() (interface{}, error) + func (k ECDSAPublicKey) PopulateMap(m map[string]interface{}) (err error) + func (k ECDSAPublicKey) Thumbprint(hash crypto.Hash) ([]byte, error) + type Headers interface + Algorithm func() string + ExtractMap func(map[string]interface{}) error + Get func(string) (interface{}, bool) + KeyID func() string + KeyOps func() []KeyOperation + KeyType func() jwa.KeyType + KeyUsage func() string + PopulateMap func(map[string]interface{}) error + Remove func(string) + Set func(string, interface{}) error + Walk func(func(string, interface{}) error) error + X509CertChain func() []*x509.Certificate + X509CertThumbprint func() string + X509CertThumbprintS256 func() string + X509URL func() string + type Key interface + Materialize func() (interface{}, error) + Thumbprint func(crypto.Hash) ([]byte, error) + func New(key interface{}) (Key, error) + type KeyOperation string + type KeyUsageType string + const ForEncryption + const ForSignature + type RSAPrivateKey struct + func (k *RSAPrivateKey) ExtractMap(m map[string]interface{}) (err error) + func (k *RSAPrivateKey) Materialize() (interface{}, error) + func (k *RSAPrivateKey) UnmarshalJSON(data []byte) (err error) + func (k RSAPrivateKey) MarshalJSON() (buf []byte, err error) + func (k RSAPrivateKey) PopulateMap(m map[string]interface{}) (err error) + func (k RSAPrivateKey) PublicKey() (*RSAPublicKey, error) + func (k RSAPrivateKey) Thumbprint(hash crypto.Hash) ([]byte, error) + type RSAPublicKey struct + func (k *RSAPublicKey) ExtractMap(m map[string]interface{}) (err error) + func (k *RSAPublicKey) Materialize() (interface{}, error) + func (k *RSAPublicKey) UnmarshalJSON(data []byte) (err error) + func (k RSAPublicKey) MarshalJSON() (buf []byte, err error) + func (k RSAPublicKey) PopulateMap(m map[string]interface{}) (err error) + func (k RSAPublicKey) Thumbprint(hash crypto.Hash) ([]byte, error) + type Set struct + Keys []Key + func Fetch(urlstring string) (*Set, error) + func FetchHTTP(jwkurl string) (*Set, error) + func Parse(buf []byte) (*Set, error) + func ParseString(s string) (*Set, error) + func (s *Set) ExtractMap(m map[string]interface{}) error + func (s Set) LookupKeyID(kid string) []Key + type StandardHeaders struct + func (h *StandardHeaders) Algorithm() string + func (h *StandardHeaders) ExtractMap(m map[string]interface{}) (err error) + func (h *StandardHeaders) Get(name string) (interface{}, bool) + func (h *StandardHeaders) KeyID() string + func (h *StandardHeaders) KeyOps() []KeyOperation + func (h *StandardHeaders) KeyType() jwa.KeyType + func (h *StandardHeaders) KeyUsage() string + func (h *StandardHeaders) Remove(s string) + func (h *StandardHeaders) Set(name string, value interface{}) error + func (h *StandardHeaders) UnmarshalJSON(buf []byte) error + func (h *StandardHeaders) X509CertChain() []*x509.Certificate + func (h *StandardHeaders) X509CertThumbprint() string + func (h *StandardHeaders) X509CertThumbprintS256() string + func (h *StandardHeaders) X509URL() string + func (h StandardHeaders) MarshalJSON() ([]byte, error) + func (h StandardHeaders) PopulateMap(m map[string]interface{}) error + func (h StandardHeaders) Walk(f func(string, interface{}) error) error + type SymmetricKey struct + func (k *SymmetricKey) UnmarshalJSON(data []byte) (err error) + func (s *SymmetricKey) ExtractMap(m map[string]interface{}) (err error) + func (s SymmetricKey) MarshalJSON() (buf []byte, err error) + func (s SymmetricKey) Materialize() (interface{}, error) + func (s SymmetricKey) Octets() []byte + func (s SymmetricKey) PopulateMap(m map[string]interface{}) (err error) + func (s SymmetricKey) Thumbprint(hash crypto.Hash) ([]byte, error)