Authorization Class
- java.
lang. Object - com.
azure. resourcemanager. security. models. Authorization
- com.
Implements
public final class Authorization
implements JsonSerializable<Authorization>
Authorization payload.
Constructor Summary
| Constructor | Description |
|---|---|
| Authorization() |
Creates an instance of Authorization class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
code()
Get the code property: Gets or sets one-time OAuth code to exchange for refresh and access tokens. |
| static Authorization |
fromJson(JsonReader jsonReader)
Reads an instance of Authorization from the Json |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
| Authorization |
withCode(String code)
Set the code property: Gets or sets one-time OAuth code to exchange for refresh and access tokens. |
Methods inherited from java.lang.Object
Constructor Details
Authorization
public Authorization()
Creates an instance of Authorization class.
Method Details
code
public String code()
Get the code property: Gets or sets one-time OAuth code to exchange for refresh and access tokens. Only used during PUT/PATCH operations. The secret is cleared during GET.
Returns:
fromJson
public static Authorization fromJson(JsonReader jsonReader)
Reads an instance of Authorization from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
withCode
public Authorization withCode(String code)
Set the code property: Gets or sets one-time OAuth code to exchange for refresh and access tokens. Only used during PUT/PATCH operations. The secret is cleared during GET.
Parameters:
Returns: