MID Server IMidServerEncrypter interface

  • Versão de lançamento: Australia
  • Atualizado 12 de mar. de 2026
  • 1 min. de leitura
  • Use the methods in this interface to create a custom external encrypter for the MID Server config.xml file.

    Nota:
    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.
    Tabela 1. Example
    void intialize(java.util.Properties properties)
            throws java.lang.Exception
    Tabela 2. Parameters
    Parameter Description
    properties Initialization properties.
    Tabela 3. Exception
    java.lang.Exception

    encrypt

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

    decrypt

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