Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Key ¶
type Key struct {
Keys []*Key `json:"keys,omitempty"`
Kty string `json:"kty"`
Use string `json:"use,omitempty"`
Kid string `json:"kid,omitempty"`
Alg string `json:"alg,omitempty"`
Crv string `json:"crv,omitempty"`
X string `json:"x,omitempty"`
Y string `json:"y,omitempty"`
D string `json:"d,omitempty"`
N string `json:"n,omitempty"`
E string `json:"e,omitempty"`
K string `json:"k,omitempty"`
}
func PrivateKey ¶
func PrivateKey(key crypto.PrivateKey) (*Key, error)
Create a JWK from a private key
func (*Key) DecodePrivateKey ¶
func (key *Key) DecodePrivateKey() (crypto.PrivateKey, error)
Decodes as a private key
Click to show internal directories.
Click to hide internal directories.