Documentation ¶
Index ¶
- type FabricCA
- func (fabricCAServices *FabricCA) CAName() string
- func (fabricCAServices *FabricCA) Enroll(enrollmentID string, enrollmentSecret string) (bccsp.Key, []byte, error)
- func (fabricCAServices *FabricCA) Reenroll(user sdkApi.User) (bccsp.Key, []byte, error)
- func (fabricCAServices *FabricCA) Register(registrar sdkApi.User, request *sdkApi.RegistrationRequest) (string, error)
- func (fabricCAServices *FabricCA) Revoke(registrar sdkApi.User, request *sdkApi.RevocationRequest) error
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 ¶
NewFabricCAClient creates a new fabric-ca client @param {api.Config} client config for fabric-ca services @param {string} organization for this CA @returns {api.FabricCAClient} FabricCAClient implementation @returns {error} error, if any
func (*FabricCA) Enroll ¶
func (fabricCAServices *FabricCA) Enroll(enrollmentID string, enrollmentSecret string) (bccsp.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 ¶
Reenroll an enrolled user in order to receive a signed X509 certificate Returns X509 certificate
Click to show internal directories.
Click to hide internal directories.