Package org.pentaho.platform.api.util

Examples of org.pentaho.platform.api.util.IPasswordService


public class PasswordServiceTest extends TestCase {

  public void testPasswordService() {
    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

Related Classes of org.pentaho.platform.api.util.IPasswordService

Copyright © 2018 www.massapicom. 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.