title: How To Implement Rest Full Web Service with Auth Token using Spring Security 4.0.1.RELEASE
body: <p>I am trying to design an API Manager with RESTful webservice. In Spring's new release, we can combine everything in Java code without using <code>web.xml</code> nor <code>securityconfig.xml</code>. 
  According to Authtoken concept, API manager should have authtoken and refresh token for user authentication.
  Please, can anyone give me sample source code or guidance how to implement RESTfull webservice with Spring Security.</p>
  
  <ol>
  <li>I need to know how all configurations are implement in Java code.</li>
  <li>it should have Authtoken concept also.</li>
  </ol>
  
  <p>This Tutorial Say correct way to do this.</p>
  
  <p><a href="http://www.beingjavaguys.com/2014/10/spring-security-oauth2-integration.html" rel="nofollow">http://www.beingjavaguys.com/2014/10/spring-security-oauth2-integration.html</a> </p>
  
  <p>But Spring Configuration are in Spring.xml file.</p>
  
  <p>I need to put them in to Java level also. </p>