Package org.encuestame.core.security.util

Examples of org.encuestame.core.security.util.HTMLInputFilter.filter()


     * @param value value.
     * @return
     */
    public String filterValue(String value){
        final HTMLInputFilter vFilter = new HTMLInputFilter(true);
        return vFilter.filter(value);
    }

    /**
     * @param serviceManager
     *            the serviceManager to set
View Full Code Here


    public UserDetails loadUserByUsername(String username){
        log.debug("loggin with username: {"+username+"}");
        log.debug("loggin with user dao instance: {"+this.accountDao+"}");
        //filter username.
        final HTMLInputFilter filter = new HTMLInputFilter(true);
        username = filter.filter(username);
        final UserAccount user = this.accountDao.getUserByUsername(username);
        log.debug("fetch username filtered: {"+user+"}");
        if (user == null) {
            log.error("user not found :{"+username);
            throw new UsernameNotFoundException("user not found");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.