Authorization Class

  • java.lang.Object
    • com.azure.resourcemanager.security.models.Authorization

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:

the code value.

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:

code - the code value to set.

Returns:

the Authorization object itself.

Applies to