OriginAuthenticationProperties Class
- java.
lang. Object - com.
azure. resourcemanager. cdn. models. OriginAuthenticationProperties
- com.
Implements
public final class OriginAuthenticationProperties
implements JsonSerializable<OriginAuthenticationProperties>
The JSON object that contains the properties of the origin authentication settings.
Constructor Summary
| Constructor | Description |
|---|---|
| OriginAuthenticationProperties() |
Creates an instance of Origin |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Origin |
fromJson(JsonReader jsonReader)
Reads an instance of Origin |
| String |
scope()
Get the scope property: The scope used when requesting token from Microsoft Entra. |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Origin |
tokenDestinationHeader()
Get the token |
|
Origin |
type()
Get the type property: The type of the authentication for the origin. |
|
Resource |
userAssignedIdentity()
Get the user |
| void |
validate()
Validates the instance. |
|
Origin |
withScope(String scope)
Set the scope property: The scope used when requesting token from Microsoft Entra. |
|
Origin |
withTokenDestinationHeader(OriginAuthenticationTokenDestinationHeader tokenDestinationHeader)
Set the token |
|
Origin |
withType(OriginAuthenticationType type)
Set the type property: The type of the authentication for the origin. |
|
Origin |
withUserAssignedIdentity(ResourceReference userAssignedIdentity)
Set the user |
Methods inherited from java.lang.Object
Constructor Details
OriginAuthenticationProperties
public OriginAuthenticationProperties()
Creates an instance of OriginAuthenticationProperties class.
Method Details
fromJson
public static OriginAuthenticationProperties fromJson(JsonReader jsonReader)
Reads an instance of OriginAuthenticationProperties from the JsonReader.
Parameters:
Returns:
Throws:
scope
public String scope()
Get the scope property: The scope used when requesting token from Microsoft Entra. For example, for Azure Blob Storage, scope could be "https://storage.azure.com/.default".
Returns:
toJson
tokenDestinationHeader
public OriginAuthenticationTokenDestinationHeader tokenDestinationHeader()
Get the tokenDestinationHeader property: The HTTP request header where the origin authentication token will be placed when forwarding the request to the origin. If not specified, the service will use the `Authorization` header for backward compatibility.
Returns:
type
public OriginAuthenticationType type()
Get the type property: The type of the authentication for the origin.
Returns:
userAssignedIdentity
public ResourceReference userAssignedIdentity()
Get the userAssignedIdentity property: The user assigned managed identity to use for the origin authentication if type is UserAssignedIdentity.
Returns:
validate
public void validate()
Validates the instance.
withScope
public OriginAuthenticationProperties withScope(String scope)
Set the scope property: The scope used when requesting token from Microsoft Entra. For example, for Azure Blob Storage, scope could be "https://storage.azure.com/.default".
Parameters:
Returns:
withTokenDestinationHeader
public OriginAuthenticationProperties withTokenDestinationHeader(OriginAuthenticationTokenDestinationHeader tokenDestinationHeader)
Set the tokenDestinationHeader property: The HTTP request header where the origin authentication token will be placed when forwarding the request to the origin. If not specified, the service will use the `Authorization` header for backward compatibility.
Parameters:
Returns:
withType
public OriginAuthenticationProperties withType(OriginAuthenticationType type)
Set the type property: The type of the authentication for the origin.
Parameters:
Returns:
withUserAssignedIdentity
public OriginAuthenticationProperties withUserAssignedIdentity(ResourceReference userAssignedIdentity)
Set the userAssignedIdentity property: The user assigned managed identity to use for the origin authentication if type is UserAssignedIdentity.
Parameters:
Returns: