Changed contents to fix version 2.7.0

master
zboris12 2024-08-17 12:08:00 +09:00
parent 20245ec399
commit cf097a6667
1 changed files with 6 additions and 6 deletions

12
API.md

@ -18,7 +18,7 @@ AES_256 | 3 | 256bit AES Encryption
Name | Type | Attributes | Description Name | Type | Attributes | Description
--- | --- | --- | --- --- | --- | --- | ---
certs | Array\<forge_cert\> | optional | An array of necessary certificates. certs | Array\<forge.pki.Certificate\> | optional | An array of necessary certificates.
ocsps | Array\<Uint8Array\> | optional | An array of [OCSP](#note)s' response. ocsps | Array\<Uint8Array\> | optional | An array of [OCSP](#note)s' response.
crls | Array\<Uint8Array\> | optional | The array of [CRL](#note)s. crls | Array\<Uint8Array\> | optional | The array of [CRL](#note)s.
@ -50,7 +50,7 @@ pubkeys | Array\<[PubKeyInfo](#PubKeyInfo)\> | optional | An array of recipients
Name | Type | Attributes | Description Name | Type | Attributes | Description
--- | --- | --- | --- --- | --- | --- | ---
c | Array\<number\><br />:fork_and_knife:Uint8Array<br />:fork_and_knife:ArrayBuffer<br />:fork_and_knife:string<br />:fork_and_knife:forge_cert | optional | A certificate. c | Array\<number\><br />:fork_and_knife:Uint8Array<br />:fork_and_knife:ArrayBuffer<br />:fork_and_knife:string<br />:fork_and_knife:forge.pki.Certificate | optional | A certificate.
p | Array\<string\> | optional | An array of permissions you want to block. Valid values see [EncryptOption](#encryptoption) p | Array\<string\> | optional | An array of permissions you want to block. Valid values see [EncryptOption](#encryptoption)
## SignAreaInfo ## SignAreaInfo
@ -189,7 +189,7 @@ raw | string | required | The target string
new CertsChain(certs<sub>*opt*</sub>) new CertsChain(certs<sub>*opt*</sub>)
Name | Type | Attributes | Description Name | Type | Attributes | Description
--- | --- | --- | --- --- | --- | --- | ---
certs | Array\<forge_cert\><br />:fork_and_knife:Array\<forge.asn1\><br />:fork_and_knife:Array\<string\> | optional | An array of certificates. certs | Array\<forge.pki.Certificate\><br />:fork_and_knife:Array\<forge.asn1\><br />:fork_and_knife:Array\<string\> | optional | An array of certificates.
### Methods ### Methods
#### buildChain #### buildChain
@ -197,14 +197,14 @@ buildChain(cert) :arrow_right: Promise\<boolean\>
Build the certificates chain from the specified certificate, and returns true if this operation is successful. Build the certificates chain from the specified certificate, and returns true if this operation is successful.
Name | Type | Attributes | Description Name | Type | Attributes | Description
--- | --- | --- | --- --- | --- | --- | ---
cert | forge_cert | required | A certificate to start build by looking for it's issuer. cert | forge.pki.Certificate | required | A certificate to start build by looking for it's issuer.
#### getAllCerts #### getAllCerts
getAllCerts() :arrow_right: Array\<forge_cert\> getAllCerts() :arrow_right: Array\<forge.pki.Certificate\>
Returns an array of all certificates. Returns an array of all certificates.
#### getSignCert #### getSignCert
getSignCert() :arrow_right: forge_cert getSignCert() :arrow_right: forge.pki.Certificate
Returns the certificate for signing. Returns the certificate for signing.
#### isSelfSignedCert #### isSelfSignedCert