public class StringSecurityUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
REQUEST_ATT_FOR_SECURITY_FORWARD |
| Constructor and Description |
|---|
StringSecurityUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
anonymisedIp(String ip)
remove latest number if all IPs in the string
|
static String |
decode(String data,
String inKey) |
static String |
encode(String data,
String inKey) |
static String |
getTimeAccessToken(int time)
return a access token valid for specified time
|
static boolean |
isValidAccessToken(String token) |
static void |
main(String[] args) |
public static final String REQUEST_ATT_FOR_SECURITY_FORWARD
public static String getTimeAccessToken(int time)
time - time in secondspublic static boolean isValidAccessToken(String token)
public static final String anonymisedIp(String ip)
ip - public static void main(String[] args)
Copyright © 2012-2018. All Rights Reserved.