Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
Use this method to generate an encryption key for encrypting/decrypting cookie and query string data for tickets.
Namespace: Microsoft.CommerceServer.Runtime
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Function GenerateEncryptionKey As String
'Usage
Dim instance As AuthManager
Dim returnValue As String
returnValue = instance.GenerateEncryptionKey()
public string GenerateEncryptionKey()
public:
String^ GenerateEncryptionKey()
public function GenerateEncryptionKey() : String
Return Value
Type: System..::.String
An encryption key used for cookie encryption.
Exceptions
Exception | Condition |
---|---|
CommerceAuthenticationException | Failed to generate the encryption key. |
Remarks
Generates an encryption key for encrypting/decrypting cookie and query string data for tickets.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.