SecurityHeaderPageCategory.java

  1. package fr.paris.lutece.portal.business.securityheader;

  2. /**
  3.  * security headers pages categories
  4.  * Determines on which pages the security headers must be applied :
  5.  * ALL : all pages
  6.  * LOGOUT_BO : Back office (admin) logout page
  7.  * LOGOUT_FO : Front office (portal) logout page
  8.  * AUTHENTICATED_ADMIN_BACK_OFFICE : Back office (admin) pages with authentication
  9.  * AUTHENTICATED_ADMIN_FRONT_OFFICE : Front office (portal) pages with authentication
  10.  *
  11.  */
  12. public enum SecurityHeaderPageCategory
  13. {
  14.     ALL( "all" ),
  15.     LOGOUT_BO( "logout_BO" ),
  16.     LOGOUT_FO( "logout_FO" ),
  17.     AUTHENTICATED_ADMIN_BACK_OFFICE( "auth_admin_BO" ),
  18.     AUTHENTICATED_ADMIN_FRONT_OFFICE( "auth_admin_FO" );

  19.     private final String _code;
  20.    
  21.     /**
  22.      * Constructor
  23.      *
  24.      * @param code
  25.      *           The code
  26.      */
  27.     private SecurityHeaderPageCategory( String code )
  28.     {
  29.         this._code = code;
  30.     }
  31.    
  32.     /**
  33.      * Returns code
  34.      *
  35.      * @return code
  36.      */
  37.     public String getCode( )
  38.     {
  39.         return _code;
  40.     }
  41. }