public class UserAuthorizationEJB extends Object
Principal.| Constructor and Description |
|---|
UserAuthorizationEJB() |
| Modifier and Type | Method and Description |
|---|---|
es.uvigo.esei.dgss.letta.domain.entities.User |
getCurrentUser()
Retrieves the current identified
User from the database. |
@RolesAllowed(value="USER") public es.uvigo.esei.dgss.letta.domain.entities.User getCurrentUser() throws SecurityException
User from the database. It uses
the current Principal name as the login to be
found. Only the "USER" role is allowed to call
this method. If the user is not found, then a SecurityException
is thrown.User that is currently identified in the system.SecurityException - if the login provided by the principal is not
found in the database (!!!).Copyright © 2015. All rights reserved.