Package org.jasypt.properties

Examples of org.jasypt.properties.EncryptableProperties.clear()


      File f = File.createTempFile("JASYPT", ".properties");
      fos = new FileOutputStream(f);
      properties.store(fos, "Sample properties file");
      System.out.printf("testPropertiesFilePropertiesEncryption : Properties file saved to '%s'\n", f.getAbsolutePath());
      // Clear all properties and reload properties file
      properties.clear();
      Assert.assertNull(properties.getProperty("PASSWORD"));
      Assert.assertNull(properties.getProperty("LOGIN"));
      fis = new FileInputStream(f);
      properties.load(fis);
      // Valid properties stored value, the property decryption value is
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.