public final class SecurityAnnotations
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
SecurityAnnotations.DenyAllImpl
DenyAll annotation implementation.
|
private static class |
SecurityAnnotations.PermitAllImpl
PermitAll annotation implementation.
|
private static class |
SecurityAnnotations.RolesAllowedImpl
DenyAll annotation implementation.
|
Modifier | Constructor and Description |
---|---|
private |
SecurityAnnotations()
Prevent instantiation.
|
Modifier and Type | Method and Description |
---|---|
static javax.annotation.security.DenyAll |
denyAll()
Create
DenyAll annotation implementation. |
static javax.annotation.security.PermitAll |
permitAll()
Create
PermitAll annotation implementation. |
static javax.annotation.security.RolesAllowed |
rolesAllowed(java.lang.String... roles)
Create
RolesAllowed annotation implementation for given set of roles. |
public static javax.annotation.security.RolesAllowed rolesAllowed(java.lang.String... roles)
RolesAllowed
annotation implementation for given set of roles.roles
- roles to be part of the annotation.public static javax.annotation.security.PermitAll permitAll()
PermitAll
annotation implementation.public static javax.annotation.security.DenyAll denyAll()
DenyAll
annotation implementation.