public static void main(String[] args) throws Exception { LdapSecurityConstants test = PasswordUtil.findAlgorithm("{sha}YaE1CJ6sVhov987e77A5db7QAPg=".getBytes()); System.out.println(test); }
LdapSecurityConstants existingAlgo = PasswordUtil.findAlgorithm( bytes );
LdapSecurityConstants algorithm = findAlgorithm( credentials );
LdapSecurityConstants algorithm = findAlgorithm( credentials );
LdapSecurityConstants algorithm = findAlgorithm( credentials );
LdapSecurityConstants algorithm = findAlgorithm( storedCredentials );
LdapSecurityConstants algorithm = findAlgorithm( storedCredentials );
LdapSecurityConstants algorithm = findAlgorithm( storedCredentials );
LdapSecurityConstants secConst = PasswordUtil.findAlgorithm( password );
LdapSecurityConstants existingAlgo = PasswordUtil.findAlgorithm( userPassword.getBytes() );