public final class ContentKey extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ContentKey.Creator
The Class Creator.
|
static class |
ContentKey.Updater |
| Modifier and Type | Method and Description |
|---|---|
static ContentKey.Creator |
create(String id,
ContentKeyType contentKeyType,
String encryptedContentKey)
Creates an operation to create a new content key.
|
static EntityDeleteOperation |
delete(String contentKeyId)
Create an operation to delete the given content key.
|
static EntityGetOperation<ContentKeyInfo> |
get(String contentKeyId)
Create an operation that will retrieve the given content key.
|
static com.microsoft.windowsazure.services.media.models.ContentKey.KeyDeliveryUrlGetter |
getKeyDeliveryUrl(String contentKeyId,
ContentKeyDeliveryType contentKeyDeliveryType) |
static DefaultListOperation<ContentKeyInfo> |
list()
Create an operation that will retrieve all access policies.
|
static DefaultListOperation<ContentKeyInfo> |
list(LinkInfo<ContentKeyInfo> link)
Create an operation that will list all the content keys at the given
link.
|
static EntityTypeActionOperation<String> |
rebind(String contentKeyId)
Rebind content key with specified content key Id.
|
static EntityTypeActionOperation<String> |
rebind(String contentKeyId,
String x509Certificate)
Rebind content key with specified content key and X509 Certificate.
|
static ContentKey.Updater |
update(String contentKeyId,
String contentKeyAuthorizationPolicyId)
Updates a ContentKey with an ContentKeyAuthorizationPolicyId
|
public static ContentKey.Creator create(String id, ContentKeyType contentKeyType, String encryptedContentKey)
id - the idcontentKeyType - the content key typeencryptedContentKey - the encrypted content keypublic static EntityGetOperation<ContentKeyInfo> get(String contentKeyId)
contentKeyId - id of content key to retrievepublic static DefaultListOperation<ContentKeyInfo> list()
public static DefaultListOperation<ContentKeyInfo> list(LinkInfo<ContentKeyInfo> link)
link - Link to request content keys from.public static EntityDeleteOperation delete(String contentKeyId)
contentKeyId - id of content key to deletepublic static EntityTypeActionOperation<String> rebind(String contentKeyId, String x509Certificate)
contentKeyId - the content key idx509Certificate - the x509 certificatepublic static EntityTypeActionOperation<String> rebind(String contentKeyId)
contentKeyId - the content key idpublic static com.microsoft.windowsazure.services.media.models.ContentKey.KeyDeliveryUrlGetter getKeyDeliveryUrl(String contentKeyId, ContentKeyDeliveryType contentKeyDeliveryType)
public static ContentKey.Updater update(String contentKeyId, String contentKeyAuthorizationPolicyId)
contentKeyId - The id of the ContentKey to be updated.contentKeyAuthorizationPolicyId - The id of the ContentKeyAuthorizationPolicy/**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/