public class SecurityTokenService extends Object implements ISecurityTokenService
Modifier and Type | Field and Description |
---|---|
static String |
MARK_TOKEN |
static String |
PARAMETER_TOKEN |
Modifier and Type | Method and Description |
---|---|
static ISecurityTokenService |
getInstance()
Returns the instance of the singleton
|
String |
getToken(javax.servlet.http.HttpServletRequest request,
String strAction)
return a security token
|
boolean |
validate(javax.servlet.http.HttpServletRequest request,
String strAction)
verify if the request contains the securiy token
|
public static final String MARK_TOKEN
public static final String PARAMETER_TOKEN
public static ISecurityTokenService getInstance()
public String getToken(javax.servlet.http.HttpServletRequest request, String strAction)
getToken
in interface ISecurityTokenService
request
- The Http requeststrAction
- the action typepublic boolean validate(javax.servlet.http.HttpServletRequest request, String strAction)
validate
in interface ISecurityTokenService
request
- The Http requeststrAction
- the action typeCopyright © 2020 City of Paris. All rights reserved.