Register / Login
Win a copy of
Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA)
this week in the
EJB and other Java EE Technologies
posted 6 years ago
Hi I'm struggling to understand what the @DeclareRoles annotation does...
I understand the @RunAs and @RolesAllowed but this is confusing me...
The way I understand it is that by the time the bean is called the caller already has a 'Principal' with it's role/s defined.....
Query:About RolesAllowed annotation
@DeclareRoles vs @RolesAllowed
Security in EJB