title: Is there a server agnostic way to implement BASIC Authentication?
body: <p>I am attempting to add BASIC authentication to my RESTful web-service. Currently I have BASIC authentication for an Apache Tomcat 6.0 server, but I need to deploy my web-service on a WebSphere application server ver. 6.1 as well and I am having problems getting BASIC authentication running on WebSphere.</p>
  
  <p>Is there a way in Java to check the authentication headers of an HTTP request and if the username/password provided (in Base64 encoding) doesn't match a known account force the user to enter in a new username/password?</p>
  
  <p>I have tried implementing Spring Security, but since my project was made entirely without Spring it has been a huge pain trying to get it to work, and I am attempting to find a simple solution to my rather simple problem.</p>
  
  <p>Technologies that I am currently using include: Java, Jersey/JAX-RS, Eclipse with Maven plugin. </p>