Documentation
¶
Index ¶
- type JWKS
- func (jwks JWKS) MarshalJSON() ([]byte, error)
- func (jwks JWKS) MarshalMsgpack() ([]byte, error)
- func (jwks JWKS) MarshalYAML() (any, error)
- func (jwks *JWKS) UnmarshalJSON(data []byte) error
- func (jwks *JWKS) UnmarshalMsgpack(data []byte) error
- func (jwks *JWKS) UnmarshalYAML(node *yaml.Node) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JWKS ¶
JWKS is a wrapper type for jwk.Set to implement custom marshaling
func KeyToJWKS ¶
func KeyToJWKS(publicKey interface{}, alg jwa.SignatureAlgorithm) JWKS
KeyToJWKS creates a jwk.Set from the passed publicKey and sets the algorithm key in the jwk.Key to the passed jwa.SignatureAlgorithm
func (JWKS) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface
func (JWKS) MarshalMsgpack ¶
MarshalMsgpack implements the msgpack.Marshaler interface
func (JWKS) MarshalYAML ¶
MarshalYAML implements the yaml.Marshaler interface.
func (*JWKS) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface
func (*JWKS) UnmarshalMsgpack ¶
UnmarshalMsgpack implements the msgpack.Unmarshaler interface
func (*JWKS) UnmarshalYAML ¶
UnmarshalYAML implements the yaml.Unmarshaler interface
Click to show internal directories.
Click to hide internal directories.