Package hirondelle.web4j.security

Examples of hirondelle.web4j.security.CsrfFilter$CharResponseWrapper


    HttpSession session = getRequestParser().getRequest().getSession(DO_NOT_CREATE);
    if( session == null ) {
      fLogger.fine("No session exists. Creating new session, outside of regular login.");
      session = getRequestParser().getRequest().getSession(CREATE_IF_MISSING);
      fLogger.fine("Adding CSRF token to the new session, to defend against CSRF attacks.");
      CsrfFilter csrfFilter = new CsrfFilter();
      try {
        csrfFilter.addCsrfToken(getRequestParser().getRequest());
      }
      catch (ServletException ex){
        throw new RuntimeException(ex);
      }
    }
View Full Code Here

TOP

Related Classes of hirondelle.web4j.security.CsrfFilter$CharResponseWrapper

Copyright © 2018 www.massapicom. 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.