Class SecurityHeader

java.lang.Object
fr.paris.lutece.portal.business.securityheader.SecurityHeader

public class SecurityHeader extends Object
This class represents a HTTP security header. It is mainly defined by a name and a value. The type is the resource on which the security is added to the HTTP request (html page or rest api). When the type is equals to page, it is mandatory to specify on which page (category) the header must be applied. The different categories are all pages, Back Office admin authenticated pages, Back Office logout page, Front Office admin authenticated pages and Front Office logout page
  • Constructor Details

    • SecurityHeader

      public SecurityHeader()
  • Method Details

    • getId

      public int getId()
      Returns the Id
      Returns:
      The Id
    • setId

      public void setId(int nId)
      Sets the Id
      Parameters:
      nId - The Id
    • getName

      public String getName()
      Returns the name of the security header
      Returns:
      the security header name as a String
    • setName

      public void setName(String strName)
      Sets the name of the security header
      Parameters:
      strName - The security header name
    • getValue

      public String getValue()
      Returns the value of the security header
      Returns:
      the security header value as a String
    • setValue

      public void setValue(String strValue)
      Sets the value of the security header
      Parameters:
      strValue - The security header value
    • getDescription

      public String getDescription()
      Returns the description of the security header
      Returns:
      the security header description as a String
    • setDescription

      public void setDescription(String strDescription)
      Sets the description of the security header
      Parameters:
      strDescription - The security header description
    • getType

      public String getType()
      Returns the type of the security header
      Returns:
      the security header type as a String
    • setType

      public void setType(String strType)
      Sets the type of the security header
      Parameters:
      strType - The security header type
    • getPageCategory

      public String getPageCategory()
      Returns the page category of the security header
      Returns:
      the security header page category as a String
    • setPageCategory

      public void setPageCategory(String strPageCategory)
      Sets the page category of the security header
      Parameters:
      strPageCategory - The security header page category
    • isActive

      public boolean isActive()
      Indicates if the security is active or not
      Returns:
      true if the security header is active, false otherwise
    • setActive

      public void setActive(boolean isActive)
      Activate or deactivate the security header
      Parameters:
      isActive - true if the security header is active, false otherwise