Documentation ¶ Index ¶ func Encode(pub *rsa.PublicKey) (string, error) type JWK func (j *JWK) ToPEM() (string, error) func (j *JWK) ToPublicKey() (*rsa.PublicKey, error) type KeyStore func NewFromUrl(url string) (*KeyStore, error) func (s *KeyStore) FindKey(keyID string) (JWK, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Encode ¶ func Encode(pub *rsa.PublicKey) (string, error) Types ¶ type JWK ¶ type JWK struct { E string `json:"e"` Kty string `json:"kty"` N string `json:"n"` Kid string `json:"kid"` } func (*JWK) ToPEM ¶ func (j *JWK) ToPEM() (string, error) func (*JWK) ToPublicKey ¶ func (j *JWK) ToPublicKey() (*rsa.PublicKey, error) type KeyStore ¶ type KeyStore struct { Keys []JWK `json:"keys"` } func NewFromUrl ¶ func NewFromUrl(url string) (*KeyStore, error) func (*KeyStore) FindKey ¶ func (s *KeyStore) FindKey(keyID string) (JWK, error) Source Files ¶ View all Source files jwk.gokeystore.go Click to show internal directories. Click to hide internal directories.