# 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
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
arg |
ModelArg.<IdentityCredentials>
|
<optional> |
Optional initialization object used to populate model fields |
- See:
-
- model
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
string
# certificate
Leaf certificate associated with the identity
PEM-encoded X.509 certificate for the identity
string
# id
Primary key for referencing this credentials entry
Unique identifier of the credentials record
string
# privateKey
Private key corresponding to the identity certificate
PEM-encoded private key material
# rootCertificate
Root of trust used to validate the leaf certificate
PEM-encoded root or intermediate certificate
string
# rootCertificate
Root of trust used to validate the leaf certificate
PEM-encoded root or intermediate certificate