jws

package
v0.20.0 Latest Latest
Warning

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

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

Documentation

Overview

Package jws package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockProvider

type MockProvider struct {
	mock.Mock
}

MockProvider is an autogenerated mock type for the Provider type

func NewMockProvider

func NewMockProvider(t mockConstructorTestingTNewMockProvider) *MockProvider

NewMockProvider creates a new instance of MockProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockProvider) GetKeySet

func (_m *MockProvider) GetKeySet(ctx context.Context) ([]byte, error)

GetKeySet provides a mock function with given fields: ctx

func (*MockProvider) Sign

func (_m *MockProvider) Sign(ctx context.Context, token []byte) ([]byte, error)

Sign provides a mock function with given fields: ctx, token

func (*MockProvider) Verify

func (_m *MockProvider) Verify(ctx context.Context, token []byte) error

Verify provides a mock function with given fields: ctx, token

type Provider

type Provider interface {
	Sign(ctx context.Context, token []byte) ([]byte, error)
	Verify(ctx context.Context, token []byte) error
	GetKeySet(ctx context.Context) ([]byte, error)
}

Provider is used to sign and verify JWT payloads

Directories

Path Synopsis
Package awskms package
Package awskms package
Package memory package
Package memory package

Jump to

Keyboard shortcuts

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