federation/kerberos/src/main/java/org/keycloak/federation/kerberos/impl/KerberosUsernamePasswordAuthenticator.java
/**
     * Returns true if user was successfully authenticated against Kerberos
     *
     * @param username username without Kerberos realm attached or with correct realm attached
     * @param password kerberos password
     * @return  true if user was successfully authenticated
     */
Returns true if user was successfully authenticated against Kerberos
@param username username without Kerberos realm attached or with correct realm attached
@param password kerberos password
@return  true if user was successfully authenticated
Returns true if user was successfully authenticated against Kerberos @param username username without Kerberos realm attached or with correct realm attached @param password kerberos password @return true if user was successfully authenticated
public boolean validUser(String username, String password) {
        try {
            authenticateSubject(username, password);
            logoutSubject();
            return true;
        } catch (LoginException le) {
            logger.debug("Failed to authenticate user " + username, le);
            return false;
        }
    }
public boolean validUser ( String username , String password ) { try { authenticateSubject ( username , password ) ; logoutSubject ( ) ; return true ; } catch ( LoginException le ) { logger . debug ( "Failed to authenticate user " + username , le ) ; return false ; } }
Returns true if user was successfully authenticated against Kerberos
 @param username username without Kerberos realm attached or with correct realm attached
 @param password kerberos password
 @return  true if user was successfully authenticated
Returns true if user was successfully authenticated against Kerberos @param username username without Kerberos realm attached or with correct realm attached @param password kerberos password @return true if user was successfully authenticated