API marked with this annotation is internal, and it is not intended to be used outside Ktor. It could be modified or removed without any notice. Using it outside Ktor could cause undefined behaviour and/or any unexpected effects.
API marked with this annotation is experimental and is not guaranteed to be stable.
Represents a nonce manager. Its responsibility is to produce nonce values and verify nonce values from untrusted sources that they are provided by this manager. This is usually required in web environment to mitigate CSRF attacks. Depending on it's underlying implementation it could be stateful or stateless. Note that there is usually some timeout for nonce values to reduce memory usage and to avoid replay attacks. Nonce length is unspecified.
API marked with this annotation is intended to become public in the future version. Usually it means that the API can't be public at the moment of development due to compatibility guarantees restrictions.
Stateless nonce manager implementation with HMAC verification and timeout. Every nonce provided by this manager consist of a random part, timestamp and HMAC.
Creates an attributes instance suitable for the particular platform
Create ES specific Attributes instance.
Create JVM specific attributes instance.
Calculate digest from current state and specified bytes.
Calculate digest from current state and specified string.
Append a relativePath safely that means that adding any extra
.. path elements will not let access anything out of the reference directory (unless you have symbolic or hard links or multiple mount points)
Moves all bytes in
this buffer to a newly created buffer with the optionally specified size
Encode ByteReadPacket in base64 format
Encode ByteArray in base64 format
Encode String in base64 format and UTF-8 character encoding.
Generates a nonce string. Could block if the system's entropy source is empty
Generates a nonce bytes of size. Could block if the system's entropy source is empty
Generates a nonce string 16 characters long. Could block if the system's entropy source is empty
Freeze selected set. May do nothing on some platforms.
Wraps into an unmodifiable set
Build an empty StringValues instance.
Build an instance of StringValues from a vararg list of pairs
Build an instance of StringValues from a single pair