Class SecurityAnnotations
- java.lang.Object
-
- org.glassfish.jersey.message.filtering.SecurityAnnotations
-
public final class SecurityAnnotations extends java.lang.Object
Convenience utility methods for creating instances of security annotations.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class 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.
-
Constructor Summary
Constructors Modifier Constructor Description private
SecurityAnnotations()
Prevent instantiation.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static javax.annotation.security.DenyAll
denyAll()
CreateDenyAll
annotation implementation.static javax.annotation.security.PermitAll
permitAll()
CreatePermitAll
annotation implementation.static javax.annotation.security.RolesAllowed
rolesAllowed(java.lang.String... roles)
CreateRolesAllowed
annotation implementation for given set of roles.
-
-
-
Method Detail
-
rolesAllowed
public static javax.annotation.security.RolesAllowed rolesAllowed(java.lang.String... roles)
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.
-
-