Class SecurityTokenService
java.lang.Object
fr.paris.lutece.portal.service.security.SecurityTokenService
- All Implemented Interfaces:
ISecurityTokenService
This class provides a security service for getting and verify tokens
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ISecurityTokenServiceReturns the instance of the singletonreturn a security tokenbooleanverify if the request contains the securiy token
-
Field Details
-
MARK_TOKEN
- See Also:
-
PARAMETER_TOKEN
- See Also:
-
-
Method Details
-
getInstance
Returns the instance of the singleton- Returns:
- The instance of the singleton
-
getToken
return a security token- Specified by:
getTokenin interfaceISecurityTokenService- Parameters:
request- The Http requeststrAction- the action type- Returns:
- a security token
-
validate
verify if the request contains the securiy token- Specified by:
validatein interfaceISecurityTokenService- Parameters:
request- The Http requeststrAction- the action type- Returns:
- true if the request contains the security token associated to the action type
-