Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

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.

void intialize(java.util.Properties properties)
        throws java.lang.Exception
ParameterDescription
propertiesInitialization properties.
`java.lang.Exception`

encrypt

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

byte[] encrypt(byte[] unencryptedData)
        throws java.lang.Exception
ParameterDescription
unencryptedDataThe data unencrypted.
Encrypted data
`java.lang.Exception`

decrypt

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

byte[] decrypt(byte[] encryptedData)
        throws java.lang.Exception
ParametersDescription
encryptedDataThe data decrypted.
Decrypted data.
`java.lang.Exception`

Parent Topic:MID Server configuration file security