DefaultKey Class

  • java.lang.Object
    • com.azure.resourcemanager.mediaservices.models.DefaultKey

public final class DefaultKey

Class to specify properties of default content key for each encryption scheme.

Constructor Summary

Constructor Description
DefaultKey()

Creates an instance of DefaultKey class.

Method Summary

Modifier and Type Method and Description
String label()

Get the label property: Label can be used to specify Content Key when creating a Streaming Locator.

String policyName()

Get the policyName property: Policy used by Default Key.

void validate()

Validates the instance.

DefaultKey withLabel(String label)

Set the label property: Label can be used to specify Content Key when creating a Streaming Locator.

DefaultKey withPolicyName(String policyName)

Set the policyName property: Policy used by Default Key.

Methods inherited from java.lang.Object

Constructor Details

DefaultKey

public DefaultKey()

Creates an instance of DefaultKey class.

Method Details

label

public String label()

Get the label property: Label can be used to specify Content Key when creating a Streaming Locator.

Returns:

the label value.

policyName

public String policyName()

Get the policyName property: Policy used by Default Key.

Returns:

the policyName value.

validate

public void validate()

Validates the instance.

withLabel

public DefaultKey withLabel(String label)

Set the label property: Label can be used to specify Content Key when creating a Streaming Locator.

Parameters:

label - the label value to set.

Returns:

the DefaultKey object itself.

withPolicyName

public DefaultKey withPolicyName(String policyName)

Set the policyName property: Policy used by Default Key.

Parameters:

policyName - the policyName value to set.

Returns:

the DefaultKey object itself.

Applies to