jakarta.annotation.security.RolesAllowed
E836363
jakarta.annotation.security.RolesAllowed is a Jakarta EE security annotation used to specify which user roles are permitted to access a given class or method.
Statements (35)
| Predicate | Object |
|---|---|
| instanceOf |
Jakarta EE API element
ⓘ
Java annotation type ⓘ security annotation ⓘ |
| appliesTo |
classes
ⓘ
methods ⓘ |
| canBeAppliedOn |
CDI managed bean methods
ⓘ
Jakarta RESTful Web Services resource methods ⓘ enterprise bean business methods ⓘ |
| category | role-based access control ⓘ |
| controls |
access to annotated class
ⓘ
access to annotated method ⓘ |
| definedIn | Jakarta Annotations specification NERFINISHED ⓘ |
| effectOnClassLevel | applies to all methods of the class unless overridden ⓘ |
| effectOnMethodLevel | overrides class-level security for that method ⓘ |
| evaluatedBy | container security subsystem ⓘ |
| introducedBy | Jakarta EE 9 namespace change ⓘ |
| language | Java NERFINISHED ⓘ |
| namespace | jakarta.annotation.security ⓘ |
| parameterName | value ⓘ |
| parameterType | array of java.lang.String ⓘ |
| partOfPackage | jakarta.annotation.security NERFINISHED ⓘ |
| purpose | to specify which security roles are allowed to access a component ⓘ |
| relatedTo |
jakarta.annotation.security.DeclareRoles
ⓘ
jakarta.annotation.security.DenyAll ⓘ jakarta.annotation.security.PermitAll ⓘ |
| replaces | javax.annotation.security.RolesAllowed ⓘ |
| requires | security context with role information ⓘ |
| semantics | access is allowed only if caller has at least one of the specified roles ⓘ |
| targetElement |
METHOD
ⓘ
TYPE ⓘ |
| usedBy | application developers to declare allowed roles ⓘ |
| usedFor | declarative security ⓘ |
| usedIn |
Jakarta EE
NERFINISHED
ⓘ
enterprise Java applications ⓘ |
| visibility | runtime ⓘ |
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.