Authorization Class
- java.
lang. Object - com.
azure. resourcemanager. security. models. Authorization
- com.
public final class 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. |
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:
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:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for