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.
All labels observed (1)
| Label | Occurrences |
|---|---|
| jakarta.annotation.security.RolesAllowed canonical | 1 |
How this entity was disambiguated
This entity first appeared as the object of triple T10019907 — resolving that mention is where its identity was fixed. The disambiguator weighed these candidate entities and picked the highlighted one (or “None”, minting a new entity). This is how homonymy is resolved: the same surface form can point to different entities.
Target entity: jakarta.annotation.security.RolesAllowed Context triple: [Jakarta Annotations, containsAnnotation, jakarta.annotation.security.RolesAllowed]
-
A.
Jakarta Annotations
Jakarta Annotations is a Jakarta EE specification that defines a set of standard Java annotations used to simplify configuration and behavior in enterprise applications.
-
B.
Jakarta Bean Validation
Jakarta Bean Validation is a Jakarta EE specification that defines a standard, annotation-based way to declare and enforce constraints on Java object models, typically used for validating user input and application data.
-
C.
Jakarta EE MVC frameworks
Jakarta EE MVC frameworks are server-side web application frameworks for the Jakarta EE platform that implement the Model-View-Controller pattern to separate business logic from presentation.
-
D.
Jakarta EE
Jakarta EE is a set of specifications that extend the Java SE platform for enterprise-level applications, defining standard APIs for building scalable, secure, and portable Java-based enterprise software.
-
E.
Jakarta RESTful Web Services
Jakarta RESTful Web Services is a Jakarta EE API that simplifies the development of RESTful web services in Java by providing annotations and a standardized programming model for building HTTP-based applications.
- F. None of above. chosen
- G. Unsure - the case is ambiguous/there is not enough information to decide.
Target entity: jakarta.annotation.security.RolesAllowed Target entity description: 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.
-
A.
Jakarta Annotations
Jakarta Annotations is a Jakarta EE specification that defines a set of standard Java annotations used to simplify configuration and behavior in enterprise applications.
-
B.
Jakarta Bean Validation
Jakarta Bean Validation is a Jakarta EE specification that defines a standard, annotation-based way to declare and enforce constraints on Java object models, typically used for validating user input and application data.
-
C.
Jakarta EE MVC frameworks
Jakarta EE MVC frameworks are server-side web application frameworks for the Jakarta EE platform that implement the Model-View-Controller pattern to separate business logic from presentation.
-
D.
Jakarta EE
Jakarta EE is a set of specifications that extend the Java SE platform for enterprise-level applications, defining standard APIs for building scalable, secure, and portable Java-based enterprise software.
-
E.
Jakarta RESTful Web Services
Jakarta RESTful Web Services is a Jakarta EE API that simplifies the development of RESTful web services in Java by providing annotations and a standardized programming model for building HTTP-based applications.
- F. None of above. chosen
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 ⓘ |
How these facts were elicited
The pipeline generated the facts above by prompting gpt-5.1 with this entity's name + description and the instruction below.
You are a knowledge base construction expert. Given a subject entity and a description of it, return factual statements that you know for the subject as a JSON list of dictionaries(triples), where keys must be "subject", "predicate" and "object". The number of facts may be very high, between 25 to 50 or more, for very popular subjects. For less popular subjects, the number of facts can be very low, like 5 or 10. # Requirements - If you don't know the subject at all, return an empty list. - If the subject is not a named entity, return an empty list. - Include at least one triple where predicate is "instanceOf". - Do not get too wordy. - Separate several objects into multiple triples with one object.
Subject: jakarta.annotation.security.RolesAllowed Description of subject: 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.
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.