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.
Statements (30)
| Predicate | Object |
|---|---|
| instanceOf |
Jakarta EE security annotation
ⓘ
Java annotation type ⓘ |
| belongsToSpecification | Jakarta Security model for role declarations ⓘ |
| canBeAppliedTo |
EJB classes
NERFINISHED
ⓘ
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 NERFINISHED ⓘ |
| partOf | Jakarta Annotations API NERFINISHED ⓘ |
| 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 NERFINISHED ⓘ |
| targetPlatform | server-side components ⓘ |
| usedBy | application developers ⓘ |
| usedFor | declarative security configuration ⓘ |
| usedIn |
Jakarta EE
NERFINISHED
ⓘ
Jakarta Enterprise Beans (EJB) NERFINISHED ⓘ Jakarta Servlet NERFINISHED ⓘ |
| valueElementType | String array of role names ⓘ |
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.