# 5. – Connect to a RDP server with a SparkView plug-in

With a Spark Gateway plug-in, you can:
1. Encrypt the parameter in your portal and send it to the gateway; the gateway plug-in decrypt the data.
2. Verify the connection, then refuse or let the connection go throght.
3. Control almost everything on the gateway: list, terminate sessions, control resource redirections on the fly etc.

**Pros:** do almost anything you want.<br>**Cons:** need to write some simple code in Java.

Please check the Integration Guide and the plug-in example for more details:

[SparkView integration guide](https://docs.sparkview.info/books/sparkview-integration-guide)<br>[http://remotespark.com/Plugin.zip](http://remotespark.com/Plugin.zip)