code: public Token recreateTokenFromBytes(String tokenType, byte[] tokenBytes) throws InvalidTokenException, TokenExpiredException {
          try {
              TokenService tokenService = getTokenServiceForType(tokenType);
              return tokenService.recreateTokenFromBytes(tokenBytes);
          } catch (IllegalArgumentException e) {
              Tr.info(tc, "TOKEN_SERVICE_INVALID_TOKEN_INFO");
              String translatedMessage = TraceNLS.getStringFromBundle(this.getClass(),
                                                                      TraceConstants.MESSAGE_BUNDLE,
                                                                      "TOKEN_SERVICE_INVALID_TOKEN_INFO",
                                                                      "CWWKS4001I: The security token cannot be validated.");
              throw new InvalidTokenException(translatedMessage, e);
          }
      }
docs: {@inheritDoc}