Class SecurityAnnotations

java.lang.Object
org.glassfish.jersey.message.filtering.SecurityAnnotations

public final class SecurityAnnotations extends Object
Convenience utility methods for creating instances of security annotations.
  • Constructor Details

    • SecurityAnnotations

      private SecurityAnnotations()
      Prevent instantiation.
  • Method Details

    • rolesAllowed

      public static javax.annotation.security.RolesAllowed rolesAllowed(String... roles)
      Create RolesAllowed 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()
      Create PermitAll annotation implementation.
      Returns:
      annotation implementation.
    • denyAll

      public static javax.annotation.security.DenyAll denyAll()
      Create DenyAll annotation implementation.
      Returns:
      annotation implementation.