app/src/main/java/io/antmedia/android/liveVideoBroadcaster/LoginScreen.java
public static boolean isUserValid(String username, String password)
    {
        String userSalt;
        String userPw;
        String hash;

        boolean isUserValid = false;

        for(io.antmedia.android.liveVideoBroadcaster.User index: credentials)
        {
            if(username.equals(index.username))
            {
                userSalt = index.salt;
                userPw = password;

                hash = generateHash(userPw, userSalt);

                if(hash.equals(index.passwordHash))
                {
                    isUserValid = true;
                }
            }
        }

        return isUserValid;
    }
/**
     * Description: Checks if user credentials are valid
     *
     * @param username
     * @param password
     * @return true if credentials are valid, false otherwise
     */
Checks if user credentials are valid
@param username
@param password
@return true if credentials are valid, false otherwise
Checks if user credentials are valid @param username @param password @return true if credentials are valid false otherwise
public static boolean isUserValid(String username, String password)
    {
        String userSalt;
        String userPw;
        String hash;
        boolean isUserValid = false;
        for(io.antmedia.android.liveVideoBroadcaster.User index: credentials)
        {
            if(username.equals(index.username))
            {
                userSalt = index.salt;
                userPw = password;
                hash = generateHash(userPw, userSalt);
                if(hash.equals(index.passwordHash))
                {
                    isUserValid = true;
                }
            }
        }
        return isUserValid;
    }
public static boolean isUserValid ( String username , String password ) { String userSalt ; String userPw ; String hash ; boolean isUserValid = false ; for ( io . antmedia . android . liveVideoBroadcaster . User index : credentials ) { if ( username . equals ( index . username ) ) { userSalt = index . salt ; userPw = password ; hash = generateHash ( userPw , userSalt ) ; if ( hash . equals ( index . passwordHash ) ) { isUserValid = true ; } } } return isUserValid ; }
Description: Checks if user credentials are valid
 @param username
 @param password
 @return true if credentials are valid, false otherwise
Description : Checks if user credentials are valid @param username @param password @return true if credentials are valid false otherwise