vcskms

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockKMS

type MockKMS struct {
	Signer      api.KMSCryptoMultiSigner
	FixedSigner api.FixedKeyMultiSigner
	VCSignerErr error
	KeyTypes    []kmsapi.KeyType
}

MockKMS mocks kms.VCSKeyManager.

Set either MockKMS.Signer or MockKMS.FixedSigner.

func (*MockKMS) CreateCryptoKey

func (m *MockKMS) CreateCryptoKey(_ kmsapi.KeyType) (string, interface{}, error)

CreateCryptoKey unimplemented stub.

func (*MockKMS) CreateJWKKey

func (m *MockKMS) CreateJWKKey(_ kmsapi.KeyType) (string, *jwk.JWK, error)

CreateJWKKey unimplemented stub.

func (*MockKMS) NewVCSigner

func (m *MockKMS) NewVCSigner(creator string, signatureType vcsverifiable.SignatureType) (vc.SignerAlgorithm, error)

NewVCSigner mock.

func (*MockKMS) SupportedKeyTypes

func (m *MockKMS) SupportedKeyTypes() []kmsapi.KeyType

SupportedKeyTypes unimplemented stub.

Jump to

Keyboard shortcuts

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