Package com.microsoft.windowsazure.services.media.implementation.content

Examples of com.microsoft.windowsazure.services.media.implementation.content.ContentKeyRestType


         * @see com.microsoft.windowsazure.services.media.entityoperations.
         * EntityCreateOperation#getRequestContents()
         */
        @Override
        public Object getRequestContents() {
            ContentKeyRestType contentKeyRestType = new ContentKeyRestType();
            contentKeyRestType.setId(id);
            if (contentKeyType != null) {
                contentKeyRestType.setContentKeyType(contentKeyType.getCode());
            }
            if (protectionKeyType != null) {
                contentKeyRestType.setProtectionKeyType(protectionKeyType
                        .getCode());
            }
            contentKeyRestType.setEncryptedContentKey(encryptedContentKey);
            contentKeyRestType.setName(name);
            contentKeyRestType.setChecksum(checksum);
            contentKeyRestType.setProtectionKeyId(protectionKeyId);
            return contentKeyRestType;
        }
View Full Code Here


    @Test
    public void testGetSetId() {
        // Arrange
        String expectedId = "expectedId";
        ContentKeyInfo contentKeyInfo = new ContentKeyInfo(null,
                new ContentKeyRestType().setId(expectedId));

        // Act
        String actualId = contentKeyInfo.getId();

        // Assert
View Full Code Here

    @Test
    public void testGetSetCreated() {
        // Arrange
        Date expectedCreated = new Date();
        ContentKeyInfo contentKeyInfo = new ContentKeyInfo(null,
                new ContentKeyRestType().setCreated(expectedCreated));

        // Act
        Date actualCreated = contentKeyInfo.getCreated();

        // Assert
View Full Code Here

    @Test
    public void testGetSetLastModified() {
        // Arrange
        Date expectedLastModified = new Date();
        ContentKeyInfo contentKeyInfo = new ContentKeyInfo(null,
                new ContentKeyRestType().setLastModified(expectedLastModified));

        // Act
        Date actualLastModified = contentKeyInfo.getLastModified();

        // Assert
View Full Code Here

    @Test
    public void testGetSetContentKeyType() {
        // Arrange
        ContentKeyType expectedContentKeyType = ContentKeyType.ConfigurationEncryption;
        ContentKeyInfo contentKeyInfo = new ContentKeyInfo(null,
                new ContentKeyRestType()
                        .setContentKeyType(expectedContentKeyType.getCode()));

        // Act
        ContentKeyType actualContentKeyType = contentKeyInfo
                .getContentKeyType();
View Full Code Here

    @Test
    public void testGetSetEncryptedContentKey() {
        // Arrange
        String expectedEncryptedContentKey = "testX509Certificate";
        ContentKeyInfo contentKeyInfo = new ContentKeyInfo(null,
                new ContentKeyRestType()
                        .setEncryptedContentKey(expectedEncryptedContentKey));

        // Act
        String actualEncryptedContentKey = contentKeyInfo
                .getEncryptedContentKey();
View Full Code Here

    @Test
    public void testGetSetName() {
        // Arrange
        String expectedName = "expectedName";
        ContentKeyInfo contentKeyInfo = new ContentKeyInfo(null,
                new ContentKeyRestType().setName(expectedName));

        // Act
        String actualName = contentKeyInfo.getName();

        // Assert
View Full Code Here

    @Test
    public void testGetSetProtectionKeyId() {
        // Arrange
        String expectedProtectionKeyId = "expectedProtectionKeyId";
        ContentKeyInfo contentKeyInfo = new ContentKeyInfo(null,
                new ContentKeyRestType()
                        .setProtectionKeyId(expectedProtectionKeyId));

        // Act
        String actualProtectionKeyId = contentKeyInfo.getProtectionKeyId();
View Full Code Here

    @Test
    public void testGetSetProtectionKeyType() {
        // Arrange
        ProtectionKeyType expectedProtectionKeyType = ProtectionKeyType.X509CertificateThumbprint;
        ContentKeyInfo contentKeyInfo = new ContentKeyInfo(null,
                new ContentKeyRestType()
                        .setProtectionKeyType(expectedProtectionKeyType
                                .getCode()));

        // Act
        ProtectionKeyType actualProtectionKeyType = contentKeyInfo
View Full Code Here

    @Test
    public void testGetSetCheckSum() {
        // Arrange
        String expectedCheckSum = "testCheckSum";
        ContentKeyInfo contentKeyInfo = new ContentKeyInfo(null,
                new ContentKeyRestType().setChecksum(expectedCheckSum));

        // Act
        String actualCheckSum = contentKeyInfo.getChecksum();

        // Assert
View Full Code Here

TOP

Related Classes of com.microsoft.windowsazure.services.media.implementation.content.ContentKeyRestType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.