Package org.asynchttpclient.util
Class NonceCounter
- java.lang.Object
-
- org.asynchttpclient.util.NonceCounter
-
public class NonceCounter extends Object
Thread-safe nonce count tracker for HTTP Digest Authentication (RFC 7616). Tracks the number of times each nonce has been used and returns the next nc value as an 8-digit hex string.
-
-
Constructor Summary
Constructors Constructor Description NonceCounter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringnextNc(String nonce)Returns the next nc value for the given nonce as an 8-digit hex string, atomically incrementing the counter.voidreset(String nonce)Removes tracking for the given nonce (e.g., on nextnonce rotation).
-