Package org.pentaho.platform.api.util

Examples of org.pentaho.platform.api.util.IPasswordService.decrypt()


    String password = "password"; //$NON-NLS-1$
    IPasswordService passwordService = new Base64PasswordService();
    String encryptedPassword = null;
    try {
      encryptedPassword = passwordService.encrypt( password );
      String decryptedPassword = passwordService.decrypt( encryptedPassword );
      assertEquals( password, decryptedPassword );
    } catch ( PasswordServiceException pse ) {
      fail( "should not have thrown the exception" ); //$NON-NLS-1$
      pse.printStackTrace();
    }
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.