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 classDenyAll annotation implementation.private static classPermitAll annotation implementation.private static final classDenyAll annotation implementation. -
Constructor Summary
Constructors -
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.
-
Constructor Details
-
SecurityAnnotations
private SecurityAnnotations()Prevent instantiation.
-
-
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.
-