Package com.omnicarecr.accounts.util

Examples of com.omnicarecr.accounts.util.UnixCrypt


   * given a salt and a password   
   */ 

  public void testSaltCrypt() {   
    // passwd is a fake class for testing located in testcases dir   
    UnixCrypt unixcrypt = null;   

    // look me up out out of that file and make sure uid is still 28272   
    String crypt = unixcrypt.crypt(SALT, PASSWORD)
    assertEquals(crypt, CRYPT_PASSWORD);

 
View Full Code Here


    assertEquals(crypt, CRYPT_PASSWORD);

 

  public void testMatches(){
    UnixCrypt unixcrypt = null;
    boolean matches = unixcrypt.matches(CRYPT_PASSWORD, PASSWORD);
    assertTrue(matches == true);
  }
View Full Code Here

TOP

Related Classes of com.omnicarecr.accounts.util.UnixCrypt

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.