Parameterized
class Parameterized : HttpAuthHeader
Describes a parameterized authentication header that is represented by a set of parameters encoded with encoding.
Constructors
Parameterized( Parameterized( Describes a parameterized authentication header that is represented by a set of parameters encoded with encoding. |
Properties
val encoding: HeaderValueEncoding parameters encoding method, one of HeaderValueEncoding |
|
val parameters: List<HeaderValueParam> a list of auth parameters |
Inherited Properties
val authScheme: String auth scheme, usually one of AuthScheme |
Functions
fun hashCode(): Int |
|
Tries to extract the first value of a parameter name. Returns null when not found. |
|
fun render(encoding: HeaderValueEncoding): String Encodes the header with a specified encoding. fun render(): String Encodes the header with the default HeaderValueEncoding for this header. |
|
fun withParameter(name: String, value: String): Parameterized Copies this Parameterized appending a new parameter name. |
|
fun withReplacedParameter( Copies this Parameterized replacing parameters with name assigning new value or appending if no such parameters found. If there were several pairs they will be reduced into a single pair at position of first occurrence discarding following pairs with this name. |
Inherited Functions
open fun toString(): String Encodes the header with the default HeaderValueEncoding for this header. |
Extension Functions
fun Parameterized.sign( Sign an HTTP auth header |
|
fun Parameterized.toDigestCredential(): DigestCredential Converts HttpAuthHeader to DigestCredential |