Package com.azure.core.http
Class HttpAuthorization
java.lang.Object
com.azure.core.http.HttpAuthorization
Represents the value of an HTTP Authorization header.
This class encapsulates the scheme and parameter of an HTTP Authorization header. The scheme represents the type of authorization being used, and the parameter represents the credentials used for the authorization.
It provides methods to access these properties. For example, you can use getScheme() to get the
scheme of the authorization header, and getParameter() to get the credentials of the authorization header.
This class is useful when you want to work with the Authorization header of an HTTP request or response.
-
Constructor Summary
ConstructorsConstructorDescriptionHttpAuthorization(String scheme, String parameter) Constructs a new HttpAuthorization instance. -
Method Summary
-
Constructor Details
-
HttpAuthorization
Constructs a new HttpAuthorization instance.- Parameters:
scheme- Scheme component of an authorization header value.parameter- The credentials used for the authorization header value.- Throws:
NullPointerException- If eitherschemeorparameteris null.IllegalArgumentException- If eitherschemeorparameterare an empty string.
-
-
Method Details