Class SecurityAnnotations
java.lang.Object
org.glassfish.jersey.message.filtering.SecurityAnnotations
Convenience utility methods for creating instances of security annotations.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
DenyAll annotation implementation.private static class
PermitAll annotation implementation.private static final class
DenyAll annotation implementation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic javax.annotation.security.DenyAll
denyAll()
CreateDenyAll
annotation implementation.static javax.annotation.security.PermitAll
CreatePermitAll
annotation implementation.static javax.annotation.security.RolesAllowed
rolesAllowed
(String... roles) CreateRolesAllowed
annotation implementation for given set of roles.
-
Constructor Details
-
SecurityAnnotations
private SecurityAnnotations()Prevent instantiation.
-
-
Method Details
-
rolesAllowed
CreateRolesAllowed
annotation 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()CreatePermitAll
annotation implementation.- Returns:
- annotation implementation.
-
denyAll
public static javax.annotation.security.DenyAll denyAll()CreateDenyAll
annotation implementation.- Returns:
- annotation implementation.
-