key

package
v0.3.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PublicKeyFromJWK

func PublicKeyFromJWK(key jwk.Key) (*rsa.PublicKey, error)

Types

type JWKS

type JWKS struct {
	Keys []interface{} `json:"keys"`
}

func ExportJWKAsJWKS

func ExportJWKAsJWKS(jwk jwk.Key) JWKS

type KeyPair

type KeyPair struct {
	Kid        string
	PrivateKey *rsa.PrivateKey
	PublicKey  *rsa.PublicKey
}

func NewKeyPairFromRSAPrivateKeyPem

func NewKeyPairFromRSAPrivateKeyPem(rawKeyPem string) (*KeyPair, error)

func (*KeyPair) JWK

func (keyPair *KeyPair) JWK() (jwk.Key, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL