Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidKey = errors.New("invalid JWK")
ErrInvalidKey is returned when passed JWK is invalid.
Functions ¶
This section is empty.
Types ¶
type JWK ¶
JWK (JSON Web Key) is a JSON data structure that represents a cryptographic key.
func (*JWK) KeyType ¶
KeyType returns the kms KeyType of the JWK, or an error if the JWK is of an unrecognized type.
func (*JWK) MarshalJSON ¶
MarshalJSON serializes the given key to its JSON representation.
func (*JWK) PublicKeyBytes ¶
PublicKeyBytes converts a public key to bytes. Note: the Public() member function is in go-jose, this means keys not supported by go-jose are not supported using j.Public(). Instead use this function to get the public raw bytes.
func (*JWK) UnmarshalJSON ¶
UnmarshalJSON reads a key from its JSON representation.
Click to show internal directories.
Click to hide internal directories.