// Path: src/main/java/org/vaadin/spring/sample/security/ui/UserSignedInEvent.java
// public class UserSignedInEvent implements Serializable {
// 	
// 	private static final long serialVersionUID = -8843033010472505451L;
// 
// 	public UserSignedInEvent() {
// 		
// 	}
// 
// }
// 
// Path: src/main/java/org/vaadin/spring/sample/security/ui/ViewToken.java
// public interface ViewToken extends Serializable {
// 	
// 	public static final String HOME="";
// 	public static final String USER="/user";	
// 	public static final String ADMIN="/admin";
// 	public static final String ADMIN_HIDDEN="/hidden";
// 	public static final String SIGNIN="/signin";
// 	public static final String SIGNUP="/signup";
// 	
// 	public static final List<String> VALID_TOKENS = Arrays.asList(new String[] {HOME, USER, ADMIN, ADMIN_HIDDEN, SIGNIN, SIGNUP});		
// 
// }
// 
// Path: src/main/java/org/vaadin/spring/sample/security/ui/security/HttpRequestResponseService.java
// public interface HttpRequestResponseService {
// 	
// 	public HttpServletRequest getCurrentRequest();
// 	
// 	public HttpServletResponse getCurrentResponse();
// 	
// }


import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.AuthenticationException;
import org.springframework.security.core.context.SecurityContext;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.security.web.authentication.RememberMeServices;
import org.springframework.security.web.authentication.rememberme.AbstractRememberMeServices;
import org.vaadin.spring.UIScope;
import org.vaadin.spring.events.EventBus;
import org.vaadin.spring.events.EventScope;
import org.vaadin.spring.mvp.MvpHasPresenterHandlers;
import org.vaadin.spring.mvp.MvpView;
import org.vaadin.spring.mvp.presenter.AbstractMvpPresenterView;
import org.vaadin.spring.navigator.VaadinView;
import org.vaadin.spring.sample.security.ui.UserSignedInEvent;
import org.vaadin.spring.sample.security.ui.ViewToken;
import org.vaadin.spring.sample.security.ui.security.HttpRequestResponseService;
import org.vaadin.spring.security.Security;
import com.vaadin.navigator.ViewChangeListener.ViewChangeEvent;
import com.vaadin.ui.UI;
package org.vaadin.spring.sample.security.ui.signin;




@SuppressWarnings("serial")
@UIScope
// Path: src/main/java/org/vaadin/spring/sample/security/ui/UserSignedInEvent.java
// public class UserSignedInEvent implements Serializable {
// 	
// 	private static final long serialVersionUID = -8843033010472505451L;
// 
// 	public UserSignedInEvent() {
// 		
// 	}
// 
// }
// 
// Path: src/main/java/org/vaadin/spring/sample/security/ui/ViewToken.java
// public interface ViewToken extends Serializable {
// 	
// 	public static final String HOME="";
// 	public static final String USER="/user";	
// 	public static final String ADMIN="/admin";
// 	public static final String ADMIN_HIDDEN="/hidden";
// 	public static final String SIGNIN="/signin";
// 	public static final String SIGNUP="/signup";
// 	
// 	public static final List<String> VALID_TOKENS = Arrays.asList(new String[] {HOME, USER, ADMIN, ADMIN_HIDDEN, SIGNIN, SIGNUP});		
// 
// }
// 
// Path: src/main/java/org/vaadin/spring/sample/security/ui/security/HttpRequestResponseService.java
// public interface HttpRequestResponseService {
// 	
// 	public HttpServletRequest getCurrentRequest();
// 	
// 	public HttpServletResponse getCurrentResponse();
// 	
// }


// Path: src/main/java/org/vaadin/spring/sample/security/ui/signin/SignInPresenter.java
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.AuthenticationException;
import org.springframework.security.core.context.SecurityContext;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.security.web.authentication.RememberMeServices;
import org.springframework.security.web.authentication.rememberme.AbstractRememberMeServices;
import org.vaadin.spring.UIScope;
import org.vaadin.spring.events.EventBus;
import org.vaadin.spring.events.EventScope;
import org.vaadin.spring.mvp.MvpHasPresenterHandlers;
import org.vaadin.spring.mvp.MvpView;
import org.vaadin.spring.mvp.presenter.AbstractMvpPresenterView;
import org.vaadin.spring.navigator.VaadinView;
import org.vaadin.spring.sample.security.ui.UserSignedInEvent;
import org.vaadin.spring.sample.security.ui.ViewToken;
import org.vaadin.spring.sample.security.ui.security.HttpRequestResponseService;
import org.vaadin.spring.security.Security;
import com.vaadin.navigator.ViewChangeListener.ViewChangeEvent;
import com.vaadin.ui.UI;

package org.vaadin.spring.sample.security.ui.signin;




@SuppressWarnings("serial")
@UIScope
@VaadinView(name=ViewToken.SIGNIN)