Browse files

Clean out experimentation with accessing security principal

  • Loading branch information...
1 parent c2ae367 commit 8db5e14857d2a82275f63ca3dea9b09a1b4223e1 @jcosmo committed Jun 27, 2012
Showing with 0 additions and 5 deletions.
  1. +0 −5 src/main/java/au/com/stocksoftware/tide/server/service/tide/UserServiceEJB.java
View
5 src/main/java/au/com/stocksoftware/tide/server/service/tide/UserServiceEJB.java
@@ -18,7 +18,6 @@
import javax.annotation.security.DeclareRoles;
@Stateless( name = UserService.EJB_NAME )
-@DeclareRoles("Authenticated")
public class UserServiceEJB
implements UserService
{
@@ -34,10 +33,6 @@
@Nonnull
public List<UserDTO> getUsers()
{
- LOG.severe(" Principal Name : " + _sessionContext.getCallerPrincipal().getName());
- LOG.severe(" Principal ToString : " + _sessionContext.getCallerPrincipal().toString());
- LOG.severe(" Is Authenticated : " + _sessionContext.isCallerInRole("Authenticated"));
- LOG.severe(" Is FooBar : " + _sessionContext.isCallerInRole("FooBar"));
final List<User> users = _userDAO.findAll();
Collections.sort( users, UserComparator.COMPARATOR );

0 comments on commit 8db5e14

Please sign in to comment.