Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KeyStore ¶
type KeyStore struct {
PrivateKey jwk.ECDSAPrivateKey
PublicSet jwk.Set
}
KeyStore holds an ECDSA private key for signing JWTs and a public JWKS that can be served from a mock JWKS endpoint for verification.
func Store ¶
func Store() *KeyStore
Store creates a new ECDSA P-256 key pair suitable for signing and verifying JWTs with the ES256 algorithm.
Click to show internal directories.
Click to hide internal directories.