AquaLogic Interaction Development Kit (IDK) 6.0.0 |

# ICredentialSetter.SetPrivateKey Method

Specifies the private key to use to encrypt the password that is sent back to the portal to be saved.

void SetPrivateKey(
string key
);

#### Parameters

key
  The key used for RSA decryption.

#### Remarks

The `CredentialEncryptionType` must be set with the `SetCredentialEncryptionType` method. This value is used only if it is not specified in a config file (Web.config). Settings in the config file override anything set with this method.

The config file parameter for this setting depends on the type of encryption being used, and can be one of the following: RSAPrivateKey, RC2PrivateKey, or AESPrivateKey.

#### See Also

ICredentialSetter Interface | Plumtree.Remote.Portlet Namespace