Class SecurityAnnotations
- java.lang.Object
-
- org.glassfish.jersey.message.filtering.SecurityAnnotations
-
public final class SecurityAnnotations extends java.lang.ObjectConvenience utility methods for creating instances of security annotations.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classSecurityAnnotations.DenyAllImplDenyAll annotation implementation.private static classSecurityAnnotations.PermitAllImplPermitAll annotation implementation.private static classSecurityAnnotations.RolesAllowedImplDenyAll annotation implementation.
-
Constructor Summary
Constructors Modifier Constructor Description privateSecurityAnnotations()Prevent instantiation.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static javax.annotation.security.DenyAlldenyAll()CreateDenyAllannotation implementation.static javax.annotation.security.PermitAllpermitAll()CreatePermitAllannotation implementation.static javax.annotation.security.RolesAllowedrolesAllowed(java.lang.String... roles)CreateRolesAllowedannotation implementation for given set of roles.
-
-
-
Method Detail
-
rolesAllowed
public static javax.annotation.security.RolesAllowed rolesAllowed(java.lang.String... roles)
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.
-
-