Class TokenUtils


  • public class TokenUtils
    extends edu.uiuc.ncsa.security.core.util.TokenUtil
    Utilities for working with tokens.

    version 1 tokens

    these are of the form:
         scheme + scheme specific part + //host / + component/  + uid/ + create timestamp
     
    E.g. https://cilogon.org/oauth2/refreshToken/77e2b3dcc7934ffa455d7f49629bad61/1605827034976

    Version 2

    These are of the form: scheme + scheme specific part + // + host / + version/ + component/ + uid/ + create timestamp/ + lifetime
     
    E.g. https://cilogon.org/oauth2/v2.0/refreshToken/77e2b3dcc7934ffa455d7f49629bad61/1605827034976/1000000

    Created by Jeff Gaynor
    on 11/24/20 at 9:37 AM

    • Constructor Detail

      • TokenUtils

        public TokenUtils()
    • Method Detail

      • b64EncodeToken

        public static String b64EncodeToken​(Token token)
      • b32EncodeToken

        public static String b32EncodeToken​(Token token)
      • main

        public static void main​(String[] args)