Class

IdentityCredentials

IdentityCredentials(argopt)

Constructor

# new IdentityCredentials(argopt)

Holds certificate chain and private key information for a Fabric identity, managed as a separate entity linked from Identity

Identity credential model storing cryptographic materials

sequenceDiagram participant App participant Model as IdentityCredentials App->>Model: new IdentityCredentials({ id, certificate, rootCertificate, privateKey }) Model-->>App: instance
Parameters:
Name Type Attributes Description
arg ModelArg.<IdentityCredentials> <optional>

Optional initialization object used to populate model fields

See:
  • model

View Source shared/model/IdentityCredentials.ts, line 10

Example
// Create credentials entry
const creds = new IdentityCredentials({ id: "creds1", certificate: "...", rootCertificate: "...", privateKey: "..." });

Members

# certificate

Leaf certificate associated with the identity

PEM-encoded X.509 certificate for the identity

View Source shared/model/IdentityCredentials.ts, line 36

string

# certificate

Leaf certificate associated with the identity

PEM-encoded X.509 certificate for the identity

View Source shared/model/IdentityCredentials.ts, line 82

# id

Primary key for referencing this credentials entry

Unique identifier of the credentials record

View Source shared/model/IdentityCredentials.ts, line 31

string

# id

Primary key for referencing this credentials entry

Unique identifier of the credentials record

View Source shared/model/IdentityCredentials.ts, line 76

# privateKey

Private key corresponding to the identity certificate

PEM-encoded private key material

View Source shared/model/IdentityCredentials.ts, line 46

string

# privateKey

Private key corresponding to the identity certificate

PEM-encoded private key material

View Source shared/model/IdentityCredentials.ts, line 94

# rootCertificate

Root of trust used to validate the leaf certificate

PEM-encoded root or intermediate certificate

View Source shared/model/IdentityCredentials.ts, line 41

string

# rootCertificate

Root of trust used to validate the leaf certificate

PEM-encoded root or intermediate certificate

View Source shared/model/IdentityCredentials.ts, line 88