Config Object Members for SuiteScript 2.1 PGP Module
Config object members in SuiteScript 2.1 support secure decryption, message integrity, and signature parsing adjustments.
TL;DR Opening
The Config object in SuiteScript 2.1 provides various properties for managing cryptographic configurations related to the PGP module. This functionality is crucial for ensuring secure messaging and data integrity within applications.
Overview of Config Object Members
The Config object members are essential properties used within the PGP module in SuiteScript 2.1. They enable developers to fine-tune security settings associated with encryption and message integrity. Below are the details of each member:
| Member Name | Return Type | Supported Script Types | Description |
|---|---|---|---|
Config.allowInsecureDecryptionWithSigningKeys | boolean | Server scripts | Enables decryption that is not secured with signing keys. |
Config.allowMessagesWithoutIntegrityProtection | boolean | Server scripts | Allows messages without integrity protection. |
Config.useRelaxedSignatureParsing | boolean | Server scripts | Relaxed signature parsing for configuration objects. |
Detailed Member Descriptions
Config.allowInsecureDecryptionWithSigningKeys
- Type:
boolean - Description: This property enables the decryption process for messages that do not utilize signing keys for security.
- Error Handling: Attempting to set this property will trigger the
READ_ONLY_PROPERTYerror.
Code Sample:
1// Add additional code2...3const config = pgp.createConfig({4 allowInsecureDecryptionWithSigningKeys: true5});6...7// Add additional codeConfig.allowMessagesWithoutIntegrityProtection
- Type:
boolean - Description: This property permits sending messages even if they lack integrity protection, which may be useful in certain scenarios.
- Error Handling: Similar to the previous property, attempting to modify it results in a
READ_ONLY_PROPERTYerror.
Code Sample:
1// Add additional code2...3const config = pgp.createConfig({4 allowMessagesWithoutIntegrityProtection: true5});6...7// Add additional codeConfig.useRelaxedSignatureParsing
- Type:
boolean - Description: This configuration setting relaxes the strictness of signature parsing, potentially enhancing compatibility with various signature structures.
Conclusion
Understanding the properties within the Config object allows developers to effectively manage cryptographic operations within SuiteScript, ensuring that security protocols align with their specific application needs.
Key Takeaways
- The Config object in SuiteScript 2.1 allows for advanced PGP configuration.
- Properties can adjust security measures around decryption and message integrity.
- Certain properties are read-only, resulting in specific error codes if modified improperly.
Source: This article is based on Oracle's official NetSuite documentation.
Frequently Asked Questions (4)
Can the properties of the Config object in the SuiteScript 2.1 PGP module, such as allowInsecureDecryptionWithSigningKeys, be modified?
What happens if I enable allowMessagesWithoutIntegrityProtection in SuiteScript 2.1?
Are the Config object properties applicable to both client and server scripts?
Does the useRelaxedSignatureParsing property in the SuiteScript 2.1 PGP module support different signature structures?
Was this article helpful?
More in Platform
- Style Object Members for Workbook API in NetSuite
The Style object provides customizable properties for workbook formatting in NetSuite, enhancing report and visualization functionality.
- Search Filter Object Usage in SuiteScript
The Search Filter object enables refined query capabilities in SuiteScript, encapsulating search criteria.
- Setting Sublist Field Values in SuiteScript
Set values for sublist fields in SuiteScript using the setSublistValue method. Understand required parameters and error handling.
- Asynchronous HTTP Requests with SuiteScript Promises
Use SuiteScript to send asynchronous HTTP requests with promises for efficient error handling and response processing.
Advertising
Reach Platform Professionals
Put your product in front of NetSuite experts who work with Platform every day.
Sponsor This Category