keystore

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileUserCertStore added in v1.2.0

type FileUserCertStore struct {
	FilePath string
}

func (*FileUserCertStore) Load added in v1.2.0

func (f *FileUserCertStore) Load(user *msp.UserData) error

func (*FileUserCertStore) LoadAll added in v1.2.0

func (f *FileUserCertStore) LoadAll(appCode string) []*msp.UserData

func (*FileUserCertStore) Store added in v1.2.0

func (f *FileUserCertStore) Store(user *msp.UserData) error

type KeyStore added in v1.2.0

type KeyStore interface {
	StoreKey(rawPem []byte, alias string) error

	LoadKey(alias string) ([]byte, error)
}

func NewFileKeyStore added in v1.2.0

func NewFileKeyStore(keyDir string) KeyStore

type UserCertStore added in v1.2.0

type UserCertStore interface {
	Load(user *msp.UserData) error
	LoadAll(appCode string) []*msp.UserData
	Store(user *msp.UserData) error
}

func NewUserCertStore added in v1.2.0

func NewUserCertStore(path string) UserCertStore

Jump to

Keyboard shortcuts

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