KeyManagementOptions.AutoGenerateKeys Property

Definition

Specifies whether the data protection system should auto-generate keys.

public:
 property bool AutoGenerateKeys { bool get(); void set(bool value); };
public bool AutoGenerateKeys { get; set; }
member this.AutoGenerateKeys : bool with get, set
Public Property AutoGenerateKeys As Boolean

Property Value

Remarks

If this value is 'false', the system will not generate new keys automatically. The key ring must contain at least one active non-revoked key, otherwise calls to Protect(Byte[]) may fail. The system may end up protecting payloads to expired keys if this property is set to 'false'. The default value is 'true'.

Applies to