List of usage examples for com.vaadin.server VaadinSession setAttribute
public <T> void setAttribute(Class<T> type, T value)
From source file:xyz.iipster.security.VaadinSessionSecurityContextHolderStrategy.java
License:Apache License
@Override public SecurityContext getContext() { VaadinSession session = getSession(); SecurityContext context = session.getAttribute(SecurityContext.class); if (context == null) { context = createEmptyContext();//from w w w . jav a 2 s .c o m session.setAttribute(SecurityContext.class, context); } return context; }