Top Description Annotations
module jakarta.annotation

Package jakarta.annotation.security


This package contains the security common annotations.

Annotation Summary

Modifier and TypeAnnotation and Description
public @interface
DeclareRoles

Used by application to declare security roles.

public @interface
DenyAll

Specifies that no security roles are allowed to invoke the specified method(s).

public @interface
PermitAll

Specifies that all security roles are allowed to invoke the specified method(s) — i.e., that the specified method(s) are "unchecked".

public @interface
RolesAllowed

Specifies the list of security roles permitted to access method(s) in an application.

public @interface
RunAs

Defines the identity of the application during execution.