Class CryptoKeyUtils

    • Field Detail

      • objMapper

        @Autowired
        protected com.fasterxml.jackson.databind.ObjectMapper objMapper
        The obj mapper.
    • Constructor Detail

      • CryptoKeyUtils

        public CryptoKeyUtils()
    • Method Detail

      • instanceType

        protected abstract InstanceType instanceType()
        Instance type.
        Returns:
        the instance type
      • encryptValue

        public String encryptValue​(String value,
                                   Key key)
        Encrypt value.
        Parameters:
        value - the value
        key - the key
        Returns:
        the string
      • decryptValue

        public String decryptValue​(String value,
                                   Key key)
        Decrypt value.
        Parameters:
        value - the value
        key - the key
        Returns:
        the string
      • encryptValue

        protected abstract String encryptValue​(String value,
                                               String key)
        Encrypt value.
        Parameters:
        value - the value
        key - the key
        Returns:
        the string
      • decryptValue

        protected abstract String decryptValue​(String value,
                                               String key)
        Decrypt value.
        Parameters:
        value - the value
        key - the key
        Returns:
        the string
      • encryptUri

        protected String encryptUri​(String value,
                                    String key)
        Encrypt uri.
        Parameters:
        value - the value
        key - the key
        Returns:
        the string
      • encodeValue

        protected String encodeValue​(String valueEncrypted)
        Encode value.
        Parameters:
        valueEncrypted - the value encrypted
        Returns:
        the string
      • decryptUri

        protected String decryptUri​(String value,
                                    String key)
        Decrypt uri.
        Parameters:
        value - the value
        key - the key
        Returns:
        the string