Class SecurityHeader
- java.lang.Object
-
- fr.paris.lutece.portal.business.securityheader.SecurityHeader
-
public class SecurityHeader extends java.lang.ObjectThis 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 Constructor Description SecurityHeader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription()Returns the description of the security headerintgetId()Returns the Idjava.lang.StringgetName()Returns the name of the security headerjava.lang.StringgetPageCategory()Returns the page category of the security headerjava.util.List<SecurityHeaderConfigItem>getSecurityHeaderConfigItemList()List of config items of security headerjava.lang.StringgetType()Returns the type of the security headerjava.lang.StringgetValue()Returns the value of the security headerbooleanisActive()Indicates if the security is active or notvoidsetActive(boolean isActive)Activate or deactivate the security headervoidsetDescription(java.lang.String strDescription)Sets the description of the security headervoidsetId(int nId)Sets the IdvoidsetName(java.lang.String strName)Sets the name of the security headervoidsetPageCategory(java.lang.String strPageCategory)Sets the page category of the security headervoidsetSecurityHeaderConfigItemList(java.util.List<SecurityHeaderConfigItem> securityHeaderConfigItemList)Sets the list of config items of security headervoidsetType(java.lang.String strType)Sets the type of the security headervoidsetValue(java.lang.String strValue)Sets the value of the security header
-
-
-
Method Detail
-
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 java.lang.String getName()
Returns the name of the security header- Returns:
- the security header name as a String
-
setName
public void setName(java.lang.String strName)
Sets the name of the security header- Parameters:
strName- The security header name
-
getValue
public java.lang.String getValue()
Returns the value of the security header- Returns:
- the security header value as a String
-
setValue
public void setValue(java.lang.String strValue)
Sets the value of the security header- Parameters:
strValue- The security header value
-
getDescription
public java.lang.String getDescription()
Returns the description of the security header- Returns:
- the security header description as a String
-
setDescription
public void setDescription(java.lang.String strDescription)
Sets the description of the security header- Parameters:
strDescription- The security header description
-
getType
public java.lang.String getType()
Returns the type of the security header- Returns:
- the security header type as a String
-
setType
public void setType(java.lang.String strType)
Sets the type of the security header- Parameters:
strType- The security header type
-
getPageCategory
public java.lang.String getPageCategory()
Returns the page category of the security header- Returns:
- the security header page category as a String
-
setPageCategory
public void setPageCategory(java.lang.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
-
getSecurityHeaderConfigItemList
public java.util.List<SecurityHeaderConfigItem> getSecurityHeaderConfigItemList()
List of config items of security header- Returns:
- List of config items of security header
-
setSecurityHeaderConfigItemList
public void setSecurityHeaderConfigItemList(java.util.List<SecurityHeaderConfigItem> securityHeaderConfigItemList)
Sets the list of config items of security header- Parameters:
securityHeaderConfigItemList- The list of config items of security header
-
-