jwk

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupportedAlgorithm = errors.New("unsupported algorithm")

Functions

This section is empty.

Types

type Module

type Module struct{}

func New

func New() *Module

func (*Module) Adopt

func (m *Module) Adopt(algorithm string, keyIn interface{}, isPublic bool) (*jose.JSONWebKey, error)

func (*Module) Generate

func (m *Module) Generate(algorithm string, seedIn interface{}) (*jose.JSONWebKey, error)

func (*Module) Parse

func (m *Module) Parse(source string) (*jose.JSONWebKey, error)

func (*Module) ParseKeySet

func (m *Module) ParseKeySet(source string) ([]jose.JSONWebKey, error)

func (*Module) ParseRSA added in v0.0.3

func (m *Module) ParseRSA(privateKey string) (*rsa.PrivateKey, error)

Jump to

Keyboard shortcuts

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