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
     * @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
@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 @param password kerberos password @return true if user was successfully authenticated
public Subject authenticateSubject(String username, String password) throws LoginException {
        String principal = getKerberosPrincipal(username);
        logger.debug("Validating password of principal: " + principal);
        loginContext = new LoginContext("does-not-matter", null,
                createJaasCallbackHandler(principal, password),
                createJaasConfiguration());
        loginContext.login();
        logger.debug("Principal " + principal + " authenticated succesfully");
        return loginContext.getSubject();
    }
public Subject authenticateSubject ( String username , String password ) throws LoginException { String principal = getKerberosPrincipal ( username ) ; logger . debug ( "Validating password of principal: " + principal ) ; loginContext = new LoginContext ( "does-not-matter" , null , createJaasCallbackHandler ( principal , password ) , createJaasConfiguration ( ) ) ; loginContext . login ( ) ; logger . debug ( "Principal " + principal + " authenticated succesfully" ) ; return loginContext . getSubject ( ) ; }
Returns true if user was successfully authenticated against Kerberos
 @param username username without Kerberos 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 @param password kerberos password @return true if user was successfully authenticated