Gives the value for any portal preference.
the decoded setting value
IPortletRequest portletRequest = ...;
byte[] secretKey = new byte[8] { 1,2,3,4,5,6,7,8 };
byte[] initVector new byte[8] { 1,2,3,4,5,6,7,8 };
ICryptoTransform cryptoTransform = new DESCryptoServiceProvider().CreateDecryptor(secretKey, initVector);
String decryptedValue = portletRequest.GetEncryptedSettingValue(SettingType.Admin, "password", cipher);
Note that the CreateEncryptor method on the same CryptoServiceProvider should be used to encrypt the value in IPortletResponse.SetEncryptedSettingValueException Type | Condition |
---|---|
NotGatewayedException | if the request is not gatewayed |
CryptoException | if there is an error decrypting the setting value |
IPortletRequest Interface | Plumtree.Remote.Portlet Namespace