Package org.javlo.helper
Class StringSecurityUtil
- java.lang.Object
-
- org.javlo.helper.StringSecurityUtil
-
public class StringSecurityUtil extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
REQUEST_ATT_FOR_SECURITY_FORWARD
-
Constructor Summary
Constructors Constructor Description StringSecurityUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
anonymisedIp(String ip)
remove latest number if all IPs in the stringstatic 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 timestatic boolean
isValidAccessToken(String token)
static void
main(String[] args)
-
-
-
Field Detail
-
REQUEST_ATT_FOR_SECURITY_FORWARD
public static final String REQUEST_ATT_FOR_SECURITY_FORWARD
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTimeAccessToken
public static String getTimeAccessToken(int time)
return a access token valid for specified time- Parameters:
time
- time in seconds- Returns:
- access token
-
isValidAccessToken
public static boolean isValidAccessToken(String token)
-
anonymisedIp
public static final String anonymisedIp(String ip)
remove latest number if all IPs in the string- Parameters:
ip
-- Returns:
-
main
public static void main(String[] args)
-
-