Package com.auth0.jwt

Class TokenUtils

java.lang.Object
com.auth0.jwt.TokenUtils

abstract class TokenUtils extends Object
  • Constructor Details

    • TokenUtils

      TokenUtils()
  • Method Details

    • splitToken

      static String[] splitToken(String token) throws JWTDecodeException
      Splits the given token on the "." chars into a String array with 3 parts.
      Parameters:
      token - the string to split.
      Returns:
      the array representing the 3 parts of the token.
      Throws:
      JWTDecodeException - if the Token doesn't have 3 parts.