awskms

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package awskms package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWSProvider

type JWSProvider struct {
	// contains filtered or unexported fields
}

JWSProvider uses AWS Asymmetric KMS key for signing tokens

func New

func New(ctx context.Context, pluginData map[string]string) (*JWSProvider, error)

New creates an InMemoryJWSProvider

func (*JWSProvider) GetKeySet

func (j *JWSProvider) GetKeySet(_ context.Context) ([]byte, error)

GetKeySet returns the JWK key set in JSON format

func (*JWSProvider) Sign

func (j *JWSProvider) Sign(ctx context.Context, payload []byte) ([]byte, error)

Sign signs a JWT payload

func (*JWSProvider) Verify

func (j *JWSProvider) Verify(_ context.Context, token []byte) error

Verify will return an error if the JWT does not have a valid signature

Jump to

Keyboard shortcuts

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