client

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Config *config.Config

	Ks bccsp.KeyStore
	Us userstore.UserStore

	Users map[string]*msp.UserData
	// contains filtered or unexported fields
}

func (*Client) GetCertName

func (c *Client) GetCertName(name string) string

func (*Client) GetHeader

func (c *Client) GetHeader() base.ReqHeader

func (*Client) GetURL

func (c *Client) GetURL(url string) string

func (*Client) GetUser

func (c *Client) GetUser(name string) (*msp.UserData, error)

func (*Client) LoadLocalUser

func (c *Client) LoadLocalUser(name string) (*msp.UserData, error)

func (*Client) LoadUser

func (c *Client) LoadUser()

func (*Client) SetAlgorithm

func (c *Client) SetAlgorithm(algorithmType enum.App_AlgorithmType, puk, pri string) error

func (*Client) Sign

func (c *Client) Sign(data string) string

func (*Client) Verify

func (c *Client) Verify(mac, data string) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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