Class SecurityAnnotations
java.lang.Object
org.glassfish.jersey.message.filtering.SecurityAnnotations
Convenience utility methods for creating instances of security annotations.
- Author:
- Michal Gajdos
-
Method Summary
Modifier and TypeMethodDescriptionstatic javax.annotation.security.DenyAlldenyAll()CreateDenyAllannotation implementation.static javax.annotation.security.PermitAllCreatePermitAllannotation implementation.static javax.annotation.security.RolesAllowedrolesAllowed(String... roles) CreateRolesAllowedannotation implementation for given set of roles.
-
Method Details
-
rolesAllowed
CreateRolesAllowedannotation implementation for given set of roles.- Parameters:
roles- roles to be part of the annotation.- Returns:
- annotation implementation.
-
permitAll
public static javax.annotation.security.PermitAll permitAll()CreatePermitAllannotation implementation.- Returns:
- annotation implementation.
-
denyAll
public static javax.annotation.security.DenyAll denyAll()CreateDenyAllannotation implementation.- Returns:
- annotation implementation.
-