Documentation ¶
Index ¶
Constants ¶
View Source
const (
KTYRSA = "RSA"
)
KTY parameter values as defined in https://tools.ietf.org/html/rfc7518#section-6.1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JWK ¶
type JWK struct { KTY string `json:"kty"` USE string `json:"use,omitempty"` ALG string `json:"alg,omitempty"` KID string `json:"kid,omitempty"` E string `json:"e,omitempty"` N string `json:"n,omitempty"` }
JWK represents a cryptographic key as defined by https://tools.ietf.org/html/rfc7517#section-4
func RSAPublicKeyToJWK ¶
RSAPublicKeyToJWK converts an RSA public key to a JWK.
type Set ¶
type Set struct {
Keys []JWK `json:"keys"`
}
Set represents a set of JWKs as defined by https://tools.ietf.org/html/rfc7517#section-5
Click to show internal directories.
Click to hide internal directories.