Class AuthRequirement


  • @Model(adaptables=SlingHttpServletRequest.class)
    public final class AuthRequirement
    extends java.lang.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 Summary

      Constructors 
      Constructor Description
      AuthRequirement()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDescription()
      Returns the description of the authentication requirement field
      java.lang.String getLabel()
      Returns the label of the authentication requirement field
      boolean isAuthRequired()
      Indicates if there is authentication required to access the content resource
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 java.lang.String getLabel()
        Returns the label of the authentication requirement field
        Returns:
      • getDescription

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