Java API to retrieve and decrypt a value

Would like to understand the difference between MaapiCrypto and AesEncrypter.
Which one is better to use? under what circumstances?

What we need to do.
We need to be able to connect to the remote system which runs ConfD, retrieve an encrypted value and then decrypt it. All that should be done using Java API.

What is the methods call sequence in this case?

Thank you,