Class: CertificateAuthority

CertificateAuthority

The CertificateAuthority class represents a Certificate Authority configuration as defined in a Connection Profile. This class will wrapper a FabricCAClientImpl fabric-ca-client implementation as a FabricCAServices instance when this class is returned from the Client#getCertificateAuthority method. This class has all the same methods as the FabricCAServices so that this class may be used directly or use this class's CertificateAuthority#getFabricCAServices method to get the actual FabricCAServices instance.

new CertificateAuthority(name)

Construct a CertificateAuthority object
Parameters:
Name Type Description
name string The name of this Certificate Authority
Returns:
  • The url of this CertificateAuthority
    Type
    string
  • The CertificateAuthority instance.
    Type
    CertificateAuthority

Methods


enroll()


generateCRL()


getCaName()

Gets the name of this CertificateAuthority to use in request
Returns:
The ca name of this CertificateAuthority
Type
string

getConnectionOptions()

Gets the connection options of this CertificateAuthority
Returns:
The connection options of this CertificateAuthority
Type
object

getFabricCAServices()

Get the FabricCAServices implementation
Returns:

getName()

Gets the name of this CertificateAuthority
Returns:
The name of this CertificateAuthority
Type
string

getRegistrar()

Gets the registrar of this CertificateAuthority
Returns:
The registrar of this CertificateAuthority
Type
object

getTlsCACerts()

Gets the TLS CA Cert of this CertificateAuthority
Returns:
The TLS CA Cert PEM string of this CertificateAuthority
Type
string

getUrl()

Gets the url of this CertificateAuthority
Returns:
The url of this CertificateAuthority
Type
string

newAffiliationService()


newCertificateService()


newIdentityService()


reenroll()


register()


revoke()


setFabricCAServices(ca_services)

Set the FabricCAServices implementation
Parameters:
Name Type Description
ca_services FabricCAServices FabricCAServices

toString()

return a printable representation of this object