HttpAuthorization Class
- java.
lang. Object - com.
azure. core. http. HttpAuthorization
- com.
public final class 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
Constructor | Description |
---|---|
HttpAuthorization(String scheme, String parameter) |
Constructs a new Http |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getParameter()
Gets the credential of the authorization header. |
String |
getScheme()
Gets the scheme of the authorization header. |
String | toString() |
Methods inherited from java.lang.Object
Constructor Details
HttpAuthorization
public HttpAuthorization(String scheme, String parameter)
Constructs a new HttpAuthorization instance.
Parameters:
Method Details
getParameter
public String getParameter()
Gets the credential of the authorization header.
Returns:
getScheme
public String getScheme()
Gets the scheme of the authorization header.
Returns:
toString
public String toString()
Overrides:
HttpAuthorization.toString()Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort beschikbaar: In de loop van 2024 zullen we GitHub-problemen geleidelijk uitfaseren als het feedbackmechanisme voor inhoud en deze vervangen door een nieuw feedbacksysteem. Zie voor meer informatie:Feedback verzenden en weergeven voor