MID Server IMidServerEncrypter interface

reference australia Updated Sep 10, 2026 1 min read mid-encrypter-interface.md
Raw file servicenow.com

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.

Text
void intialize(java.util.Properties properties)        throws java.lang.Exception
|Parameter|Description| |---------|-----------| |properties|Initialization properties.|

java.lang.Exception

## encrypt

This method encrypts the unencrypted data and returns a byte[ ] type value.

Text
byte[] encrypt(byte[] unencryptedData)        throws java.lang.Exception
|Parameter|Description| |---------|-----------| |unencryptedData|The data unencrypted.|

Encrypted data

java.lang.Exception

## decrypt

This method decrypts encrypted data and returns a byte[ ] type value.

Text
byte[] decrypt(byte[] encryptedData)        throws java.lang.Exception
|Parameters|Description| |----------|-----------| |encryptedData|The data decrypted.|

Decrypted data.

java.lang.Exception

**Parent Topic:**[MID Server configuration file security]()
Search documentation
Search document titles and file paths on the australia branch