fabricca

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2019 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 FabricCA

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

FabricCA represents a client to Fabric CA.

func NewFabricCAClient

func NewFabricCAClient(org string, config config.Config, cryptoSuite apicryptosuite.CryptoSuite) (*FabricCA, error)

NewFabricCAClient creates a new fabric-ca client @param {string} organization for this CA @param {api.Config} client config for fabric-ca services @returns {api.FabricCAClient} FabricCAClient implementation @returns {error} error, if any

func (*FabricCA) CAName

func (fabricCAServices *FabricCA) CAName() string

CAName returns the CA name.

func (*FabricCA) Enroll

func (fabricCAServices *FabricCA) Enroll(enrollmentID string, enrollmentSecret string) (apicryptosuite.Key, []byte, error)

Enroll a registered user in order to receive a signed X509 certificate. enrollmentID The registered ID to use for enrollment enrollmentSecret The secret associated with the enrollment ID Returns X509 certificate

func (*FabricCA) Reenroll

func (fabricCAServices *FabricCA) Reenroll(user sdkApi.User) (apicryptosuite.Key, []byte, error)

Reenroll an enrolled user in order to receive a signed X509 certificate Returns X509 certificate

func (*FabricCA) Register

func (fabricCAServices *FabricCA) Register(registrar sdkApi.User,
	request *sdkApi.RegistrationRequest) (string, error)

Register a User with the Fabric CA registrar: The User that is initiating the registration request: Registration Request Returns Enrolment Secret

func (*FabricCA) Revoke

func (fabricCAServices *FabricCA) Revoke(registrar sdkApi.User,
	request *sdkApi.RevocationRequest) (*api.RevocationResponse, error)

Revoke a User with the Fabric CA registrar: The User that is initiating the revocation request: Revocation Request

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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