LocalClientSecuritySettings.ReplayCacheSize Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the number of cached nonces used for replay detection.
public:
property int ReplayCacheSize { int get(); void set(int value); };
public int ReplayCacheSize { get; set; }
member this.ReplayCacheSize : int with get, set
Public Property ReplayCacheSize As Integer
The number of cached nonces used for replay detection. The default is 900000.
This example shows how to get the number of cached nonces to use for replay detection.
int replayCacheSize = settings.ReplayCacheSize;
Dim replayCacheSize As Integer = settings.ReplayCacheSize
A nonce is a "number used once", often a random number used in an authentication protocol to ensure that old communications cannot be used in an attack by using replays.
If the nonce count is exceeded, the incoming message is rejected and a MessageSecurityException is thrown. Old nonces are removed in a timely manner.
Prodotto | Versioni |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Feedback su .NET
.NET è un progetto di open source. Selezionare un collegamento per fornire feedback: