Freigeben über


GenerateEncryptionKey Method

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

See Also

Reference

AuthManager Class

AuthManager Members

Microsoft.CommerceServer.Runtime Namespace