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.
Author:
Michal Gajdos
  • Method Summary

    Modifier and Type
    Method
    Description
    static javax.annotation.security.DenyAll
    Create DenyAll annotation implementation.
    static javax.annotation.security.PermitAll
    Create PermitAll annotation implementation.
    static javax.annotation.security.RolesAllowed
    rolesAllowed(String... roles)
    Create RolesAllowed annotation implementation for given set of roles.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.