It is possible to encrypt your service account credentials and reference the stored credentials' location within the registry.
Note:
Full details on creating encrypted account registry keys are available in the Microsoft article: “How to use the ASP.NET utility to encrypt credentials and session state connection strings” available at: http://support.microsoft.com/kb/329290/
To manually configure impersonation, complete the following steps: