- Set<Authentication> auths = subject
- .getPrincipals(Authentication.class);
- if (auths.size() > 0)
- SecurityContextHolder.getContext().setAuthentication(
- auths.iterator().next());
- // authen = SecurityContextHolder.getContext()
- // .getAuthentication();
- // RWT.getSessionStore().setAttribute(
- // SECURITY_CONTEXT_ATTRIBUTE, authen);