Documentation ¶
Index ¶
- type FabricCA
- func (fabricCAServices *FabricCA) CAName() string
- func (fabricCAServices *FabricCA) Enroll(enrollmentID string, enrollmentSecret string) (apicryptosuite.Key, []byte, error)
- func (fabricCAServices *FabricCA) Reenroll(user sdkApi.User) (apicryptosuite.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) (*api.RevocationResponse, 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 ¶
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) 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 ¶
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