core/cas-server-core-authentication/src/main/java/org/apereo/cas/authentication/handler/support/AbstractUsernamePasswordAuthenticationHandler.java
/**
     * Authenticates a username/password credential by an arbitrary strategy with extra parameter original credential password before
     * encoding password. Override it if implementation need to use original password for authentication.
     *
     * @param transformedCredential the credential object bearing the transformed username and password.
     * @param originalPassword      original password from credential before password encoding
     * @return HandlerResult resolved from credential on authentication success or null if no principal could be resolved
     * from the credential.
     * @throws GeneralSecurityException On authentication failure.
     * @throws PreventedException       On the indeterminate case when authentication is prevented.
     */
Authenticates a username/password credential by an arbitrary strategy with extra parameter original credential password before
encoding password. Override it if implementation need to use original password for authentication.

@param transformedCredential the credential object bearing the transformed username and password.
@param originalPassword      original password from credential before password encoding
@return HandlerResult resolved from credential on authentication success or null if no principal could be resolved
from the credential.
@throws GeneralSecurityException On authentication failure.
@throws PreventedException       On the indeterminate case when authentication is prevented.
Authenticates a username / password credential by an arbitrary strategy with extra parameter original credential password before encoding password . Override it if implementation need to use original password for authentication . @param transformedCredential the credential object bearing the transformed username and password . @param originalPassword original password from credential before password encoding @return HandlerResult resolved from credential on authentication success or null if no principal could be resolved from the credential . @throws GeneralSecurityException On authentication failure . @throws PreventedException On the indeterminate case when authentication is prevented .
protected HandlerResult authenticateUsernamePasswordInternal(final UsernamePasswordCredential transformedCredential,
                                                                 final String originalPassword)
            throws GeneralSecurityException, PreventedException {
        return authenticateUsernamePasswordInternal(transformedCredential);
    }
protected HandlerResult authenticateUsernamePasswordInternal ( final UsernamePasswordCredential transformedCredential , final String originalPassword ) throws GeneralSecurityException , PreventedException { return authenticateUsernamePasswordInternal ( transformedCredential ) ; }
Authenticates a username/password credential by an arbitrary strategy with extra parameter original credential password before
 encoding password.
Authenticates a username / password credential by an arbitrary strategy with extra parameter original credential password before encoding password .