Class SecurityTokenService

java.lang.Object
fr.paris.lutece.portal.service.security.SecurityTokenService
All Implemented Interfaces:
ISecurityTokenService

public class SecurityTokenService extends Object implements ISecurityTokenService
This class provides a security service for getting and verify tokens
  • Field Details

  • Method Details

    • getInstance

      public static ISecurityTokenService getInstance()
      Returns the instance of the singleton
      Returns:
      The instance of the singleton
    • getToken

      public String getToken(javax.servlet.http.HttpServletRequest request, String strAction)
      return a security token
      Specified by:
      getToken in interface ISecurityTokenService
      Parameters:
      request - The Http request
      strAction - the action type
      Returns:
      a security token
    • validate

      public boolean validate(javax.servlet.http.HttpServletRequest request, String strAction)
      verify if the request contains the securiy token
      Specified by:
      validate in interface ISecurityTokenService
      Parameters:
      request - The Http request
      strAction - the action type
      Returns:
      true if the request contains the security token associated to the action type