Class NexoCrypto


  • public class NexoCrypto
    extends Object
    • Method Detail

      • encrypt

        public SaleToPOISecuredMessage encrypt​(String saleToPoiMessageJson,
                                               MessageHeader messageHeader)
                                        throws Exception
        Encrypts the SaleToPOI message using the provided message header and security key.
        Parameters:
        saleToPoiMessageJson - the JSON string representing the SaleToPOI message
        messageHeader - the message header for encryption
        Returns:
        encrypted SaleToPOISecuredMessage
        Throws:
        Exception
      • decrypt

        public String decrypt​(SaleToPOISecuredMessage saleToPoiSecuredMessage)
                       throws Exception
        Decrypts the SaleToPOI secured message.
        Parameters:
        saleToPoiSecuredMessage - the encrypted message
        Returns:
        the decrypted SaleToPOI message as a JSON string
        Throws:
        Exception