@bloock/sdk / RecordBuilder
Class: RecordBuilder
Assists in constructing records with various configurations.
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new RecordBuilder(payload
, payloadType
, configData
): RecordBuilder
Creates a new RecordBuilder with default configuration.
Parameters
Name | Type |
---|---|
payload | any |
payloadType | RecordTypes |
configData | ConfigData |
Returns
Defined in
Properties
configData
• configData: ConfigData
Defined in
decrypter
• decrypter: undefined
| Encrypter
Defined in
encrypter
• encrypter: undefined
| Encrypter
Defined in
payload
• payload: any
Defined in
payloadType
• payloadType: RecordTypes
Defined in
signer
• signer: undefined
| Signer
Defined in
Methods
build
▸ build(): Promise
<Record
>
Constructs a record based on the RecordBuilder's configuration.
Returns
Promise
<Record
>
Defined in
getDetails
▸ getDetails(): Promise
<RecordDetails
>
Gets details about other Bloock services (Integrity, Authenticity, Encryption, Availability) configured in the RecordBuilder.
Returns
Promise
<RecordDetails
>
Defined in
withDecrypter
▸ withDecrypter(decrypter
): RecordBuilder
Sets the decrypter for the RecordBuilder.
Parameters
Name | Type |
---|---|
decrypter | Encrypter |
Returns
Defined in
withEncrypter
▸ withEncrypter(encrypter
): RecordBuilder
Sets the encrypter for the RecordBuilder.
Parameters
Name | Type |
---|---|
encrypter | Encrypter |
Returns
Defined in
withSigner
▸ withSigner(signer
): RecordBuilder
Sets the signer for the RecordBuilder.
Parameters
Name | Type |
---|---|
signer | Signer |