Class AuthRequirement


  • @Model(adaptables=SlingHttpServletRequest.class)
    public final class AuthRequirement
    extends Object
    Representation of the authentication requirement field, used to force authentication to access a given content resource. The authentication requirement could be enabled / disabled from the UI (for instance in the page properties view) The content resource is derived from the content path attribute of the request.
    • Constructor Detail

      • AuthRequirement

        public AuthRequirement()
    • Method Detail

      • isAuthRequired

        public boolean isAuthRequired()
        Indicates if there is authentication required to access the content resource
        Returns:
      • getLabel

        public String getLabel()
        Returns the label of the authentication requirement field
        Returns:
      • getDescription

        public String getDescription()
        Returns the description of the authentication requirement field
        Returns: