Class CryptoPublicKeyUtils


  • @Component
    public class CryptoPublicKeyUtils
    extends CryptoKeyUtils
    The Class CryptoPublicKeyUtils.
    • Constructor Detail

      • CryptoPublicKeyUtils

        public CryptoPublicKeyUtils()
    • Method Detail

      • encryptObject

        public String encryptObject​(Object value,
                                    String key)
                             throws com.fasterxml.jackson.core.JsonProcessingException
        Encrypt object.
        Parameters:
        value - the value
        key - the key
        Returns:
        the string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - the json processing exception
      • decryptObject

        public <T> T decryptObject​(String value,
                                   Class<T> response,
                                   String key)
                            throws com.fasterxml.jackson.databind.JsonMappingException,
                                   com.fasterxml.jackson.core.JsonProcessingException
        Decrypt object.
        Type Parameters:
        T - the generic type
        Parameters:
        value - the value
        response - the response
        key - the key
        Returns:
        the t
        Throws:
        com.fasterxml.jackson.databind.JsonMappingException - the json mapping exception
        com.fasterxml.jackson.core.JsonProcessingException - the json processing exception
      • encryptObjectUri

        public String encryptObjectUri​(Object value,
                                       String key)
                                throws com.fasterxml.jackson.core.JsonProcessingException
        Encrypt object uri.
        Parameters:
        value - the value
        key - the key
        Returns:
        the string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - the json processing exception
      • decryptObjectUri

        public <T> T decryptObjectUri​(String value,
                                      Class<T> response,
                                      String key)
                               throws com.fasterxml.jackson.databind.JsonMappingException,
                                      com.fasterxml.jackson.core.JsonProcessingException
        Decrypt object uri.
        Type Parameters:
        T - the generic type
        Parameters:
        value - the value
        response - the response
        key - the key
        Returns:
        the t
        Throws:
        com.fasterxml.jackson.databind.JsonMappingException - the json mapping exception
        com.fasterxml.jackson.core.JsonProcessingException - the json processing exception