Class SecurityHeader
java.lang.Object
fr.paris.lutece.portal.business.securityheader.SecurityHeader
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the description of the security headerintgetId()Returns the IdgetName()Returns the name of the security headerReturns the page category of the security headergetType()Returns the type of the security headergetValue()Returns the value of the security headerbooleanisActive()Indicates if the security is active or notvoidsetActive(boolean isActive) Activate or deactivate the security headervoidsetDescription(String strDescription) Sets the description of the security headervoidsetId(int nId) Sets the IdvoidSets the name of the security headervoidsetPageCategory(String strPageCategory) Sets the page category of the security headervoidSets the type of the security headervoidSets the value of the security header
-
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
Returns the name of the security header- Returns:
- the security header name as a String
-
setName
Sets the name of the security header- Parameters:
strName- The security header name
-
getValue
Returns the value of the security header- Returns:
- the security header value as a String
-
setValue
Sets the value of the security header- Parameters:
strValue- The security header value
-
getDescription
Returns the description of the security header- Returns:
- the security header description as a String
-
setDescription
Sets the description of the security header- Parameters:
strDescription- The security header description
-
getType
Returns the type of the security header- Returns:
- the security header type as a String
-
setType
Sets the type of the security header- Parameters:
strType- The security header type
-
getPageCategory
Returns the page category of the security header- Returns:
- the security header page category as a String
-
setPageCategory
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
-