Class StringSecurityUtil


  • public class StringSecurityUtil
    extends Object
    • Constructor Detail

      • StringSecurityUtil

        public StringSecurityUtil()
    • 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)