Class SecurityTokenService

    • Method Detail

      • 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