src/main/java/org/tinyradius/packet/AccessRequest.java
public boolean verifyPassword(String plaintext)
        throws RadiusException {
        if (plaintext == null || plaintext.length() == 0) {
            throw new IllegalArgumentException("password is empty");
        }
        if (getAuthProtocol().equals(AUTH_CHAP)) {
            return verifyChapPassword(plaintext);
        }
        else {
            return getUserPassword().equals(plaintext);
        }
    }
/**
     * Verifies that the passed plain-text password matches the password
     * (hash) send with this Access-Request packet. Works with both PAP
     * and CHAP.
     *
     * @param plaintext
     * @return true if the password is valid, false otherwise
     */
Verifies that the passed plain-text password matches the password
(hash) send with this Access-Request packet. Works with both PAP
and CHAP.

@param plaintext
@return true if the password is valid, false otherwise
Verifies that the passed plain - text password matches the password ( hash ) send with this Access - Request packet . Works with both PAP and CHAP . @param plaintext @return true if the password is valid false otherwise
public boolean verifyPassword(String plaintext)
        throws RadiusException {
        if (plaintext == null || plaintext.length() == 0) {
            throw new IllegalArgumentException("password is empty");
        }
        if (getAuthProtocol().equals(AUTH_CHAP)) {
            return verifyChapPassword(plaintext);
        }
        else {
            return getUserPassword().equals(plaintext);
        }
    }
public boolean verifyPassword ( String plaintext ) throws RadiusException { if ( plaintext == null || plaintext . length ( ) == 0 ) { throw new IllegalArgumentException ( "password is empty" ) ; } if ( getAuthProtocol ( ) . equals ( AUTH_CHAP ) ) { return verifyChapPassword ( plaintext ) ; } else { return getUserPassword ( ) . equals ( plaintext ) ; } }
Verifies that the passed plain-text password matches the password
 (hash) send with this Access-Request packet.
Verifies that the passed plain - text password matches the password ( hash ) send with this Access - Request packet .