jakarta.annotation.security.DeclareRoles

E836364

jakarta.annotation.security.DeclareRoles is a Jakarta EE security annotation used to declare application security roles that can be referenced for access control in components such as servlets and EJBs.

All labels observed (1)

Label Occurrences
jakarta.annotation.security.DeclareRoles canonical 1

How this entity was disambiguated

Statements (30)

Predicate Object
instanceOf Jakarta EE security annotation ⓘ
Java annotation type ⓘ
belongsToSpecification Jakarta Security model for role declarations ⓘ
canBeAppliedTo EJB classes ⓘ
managed beans ⓘ
servlet classes ⓘ
category security ⓘ
defines security roles available to the application ⓘ
elementType TYPE ⓘ
enables container-managed role checking ⓘ
introducedAs successor of javax.annotation.security.DeclareRoles in Jakarta namespace ⓘ
namespaceChangeFrom javax.annotation.security.DeclareRoles ⓘ
package jakarta.annotation.security ⓘ
partOf Jakarta Annotations API ⓘ
linked to: Jakarta Annotations
purpose Declare application security roles ⓘ
Enable role-based access control ⓘ
referencedBy @DenyAll ⓘ
@PermitAll ⓘ
@RolesAllowed ⓘ
requires support from Jakarta EE container ⓘ
retentionPolicy RUNTIME ⓘ
roleScope application level ⓘ
since Jakarta EE 9 namespace transition ⓘ
linked to: Jakarta EE
targetPlatform server-side components ⓘ
usedBy application developers ⓘ
usedFor declarative security configuration ⓘ
usedIn Jakarta EE ⓘ
Jakarta Enterprise Beans (EJB) ⓘ
Jakarta Servlet ⓘ
valueElementType String array of role names ⓘ

How these facts were elicited

Referenced by (1)

Full triples — surface form annotated when it differs from this entity's canonical label.

Jakarta Annotations → containsAnnotation → jakarta.annotation.security.DeclareRoles ⓘ