public final class SecurityAnnotations extends Object
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(String... roles)
Create
RolesAllowed annotation implementation for given set of roles. |
public static javax.annotation.security.RolesAllowed rolesAllowed(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.Copyright © 2007-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.