Thank you for your feedback.
Form temporarily unavailable. Please try again or contact docfeedback@servicenow.com to submit your comments.
Versions
  • London
  • Kingston
  • Jakarta
  • Istanbul
  • Helsinki
  • Geneva
  • Store
Close

MID Server IMidServerEncrypter interface

MID Server IMidServerEncrypter interface

Use the methods in this interface to create a custom external encrypter for the MID Server config.xml file.

Note: These methods are contained in the snc-automation-api.jar file, located in the MID Server installation folder.

initialize

This method initializes the encrypter with additional configuration parameters and does not return a value.
Table 1. Example
void intialize(java.util.Properties properties)
        throws java.lang.Exception
Table 2. Parameters
Parameter Description
properties Initialization properties.
Table 3. Exception
java.lang.Exception

encrypt

This method encrypts the unencrypted data and returns a byte[ ] type value.
Table 4. Example
byte[] encrypt(byte[] unencryptedData)
        throws java.lang.Exception
Table 5. Parameters
Parameter Description
unencryptedData The data unencrypted.
Table 6. Returns
Encrypted data
Table 7. Exception
java.lang.Exception

decrypt

This method decrypts encrypted data and returns a byte[ ] type value.
Table 8. Example
byte[] decrypt(byte[] encryptedData)
        throws java.lang.Exception
Table 9. Parameters
Parameters Description
encryptedData The data decrypted.
Table 10. Returns
Decrypted data.
Table 11. Exception
java.lang.Exception