title: Accessing SecurityContextHolderAwareRequestWrapper instance?
body: <p>I am using Spring and Spring-Security in a Vaadin application.</p>
  
  <p>I want to check if the user has a certain role using <a href="http://static.springsource.org/spring-security/site/apidocs/org/springframework/security/web/servletapi/SecurityContextHolderAwareRequestWrapper.html#isUserInRole%28java.lang.String%29" rel="nofollow noreferrer">SecurityContextHolderAwareRequestWrapper.isUserInRole(...)</a> but cannot figure out how to get a reference to the wrapper (I tried injecting this using @Autowired, NB: I did not manually configure an instance of it as I believe the DelegatingFilterProxy is already doing this behind the scenes).</p>
  
  <p><a href="https://stackoverflow.com/questions/3021200/how-to-check-hasrole-in-java-code-with-spring-security">This</a> stack overflow issue provided me with the solution, but I cannot uncover how to access or instantiate the wrapper properly.</p>
  
  <p>My other alternative is to access the SecurityContext directly and iterate though the GrantedAuthorities as per the other suggestions in the linked SO issue.</p>
  
  <p>How should I access/instantiate the wrapper?</p>