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.

·2 min read·View Oracle Docs

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 NameReturn TypeSupported Script TypesDescription
Config.allowInsecureDecryptionWithSigningKeysbooleanServer scriptsEnables decryption that is not secured with signing keys.
Config.allowMessagesWithoutIntegrityProtectionbooleanServer scriptsAllows messages without integrity protection.
Config.useRelaxedSignatureParsingbooleanServer scriptsRelaxed 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_PROPERTY error.

Code Sample:

suitescript
1// Add additional code
2...
3const config = pgp.createConfig({
4 allowInsecureDecryptionWithSigningKeys: true
5});
6...
7// Add additional code

Config.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_PROPERTY error.

Code Sample:

suitescript
1// Add additional code
2...
3const config = pgp.createConfig({
4 allowMessagesWithoutIntegrityProtection: true
5});
6...
7// Add additional code

Config.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?
No, attempting to modify these properties will trigger a READ_ONLY_PROPERTY error, indicating they are immutable.
What happens if I enable allowMessagesWithoutIntegrityProtection in SuiteScript 2.1?
Enabling this property allows messages to be sent without integrity protection, which could be suitable for specific scenarios where such protection is not required.
Are the Config object properties applicable to both client and server scripts?
No, the properties are supported only in server scripts as specified in the article.
Does the useRelaxedSignatureParsing property in the SuiteScript 2.1 PGP module support different signature structures?
Yes, using relaxed signature parsing enhances compatibility with various signature structures by not strictly enforcing signature parsing rules.
Source: Config Object Members Oracle NetSuite Help Center. This article was generated from official Oracle documentation and enriched with additional context and best practices.

Was this article helpful?

More in Platform

View all Platform articles →