Class AMPasswordUtil


  • @SupportedAll
    public class AMPasswordUtil
    extends Object
    This class which contains utilities to encrypt and decrypt attribute value of password type.
    • Constructor Detail

      • AMPasswordUtil

        public AMPasswordUtil()
    • Method Detail

      • encrypt

        public static String encrypt​(String password)
        Encrypts the password.
        Parameters:
        password - The password string.
        Returns:
        The encrypted password.
      • decrypt

        public static String decrypt​(String encrypted)
        Decrypts the encrypted password. If the string cannot be decrypted the original string passed in will be returned.
        Parameters:
        encrypted - encrypted string.
        Returns:
        The decrypted password.