Package com.auth0.jwt

Class TokenUtils


  • abstract class TokenUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      TokenUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static java.lang.String[] splitToken​(java.lang.String token)
      Splits the given token on the "." chars into a String array with 3 parts.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TokenUtils

        TokenUtils()
    • Method Detail

      • splitToken

        static java.lang.String[] splitToken​(java.lang.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.