Top Description Methods
jakarta.annotation.security

public @Interface PermitAll

extends Annotation
Annotations
@Documented
@Retention:RUNTIME
@Target:TYPE, METHOD
Imports
java.lang.annotation.*

Specifies that all security roles are allowed to invoke the specified method(s) — i.e., that the specified method(s) are "unchecked". It can be specified on a class or on methods. Specifying it on the class means that it applies to all methods of the class. If specified at the method level, it only affects that method. If the RolesAllowed annotation is specified at the class level and this annotation is applied at the method level, the PermitAll annotation overrides the RolesAllowed annotation for the specified method.
Since
Common Annotations 1.0
See Also
jakarta.annotation.security.RolesAllowed, jakarta.annotation.security.DenyAll

Method Summary

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString