private PMSecurityUser authenticate(PMContext ctx) throws PMSecurityException {
        PMSecurityUser u = null;
        final Object username = ctx.getParameter("username");
        final Object password = ctx.getParameter("password");
        if (username == null || password == null) {
            throw new InvalidUserException();
        }
        u = getConnector(ctx).authenticate(
                username.toString(),
                password.toString());
        return u;
    }
private PMSecurityUser authenticate ( PMContext ctx ) throws PMSecurityException { PMSecurityUser u = null ; final Object username = ctx . getParameter ( "username" ) ; final Object password = ctx . getParameter ( "password" ) ; if ( username == null || password == null ) { throw new InvalidUserException ( ) ; } u = getConnector ( ctx ) . authenticate ( username . toString ( ) , password . toString ( ) ) ; return u ; }
@param ctx The context with all the parameters
@return The user