AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Types | Public Member Functions | Public Attributes | List of all members
alexaClientSDK::avsCommon::utils::playlistParser::EncryptionInfo Struct Reference

#include <PlaylistEntry.h>

Public Types

enum  Method { Method::NONE, Method::AES_128, Method::SAMPLE_AES }
 

Public Member Functions

 EncryptionInfo ()
 
 EncryptionInfo (Method method, std::string url, std::string initVector=std::string())
 
bool isValid () const
 

Public Attributes

Method method
 Encryption method. More...
 
std::string keyURL
 The URL of the encryption key. More...
 
std::string initVector
 The initilization vector used for encryption. More...
 
std::chrono::milliseconds totalDuration
 The total duration of the content from the playlist. More...
 

Detailed Description

Struct to hold encryption info: method, key URL and initialization vector.

Member Enumeration Documentation

◆ Method

Encryption method.

Enumerator
NONE 

No encryption.

AES_128 

AES-128 encryption method.

SAMPLE_AES 

SAMPLE-AES encryption method.

Constructor & Destructor Documentation

◆ EncryptionInfo() [1/2]

alexaClientSDK::avsCommon::utils::playlistParser::EncryptionInfo::EncryptionInfo ( )
inline

Default constructor.

◆ EncryptionInfo() [2/2]

alexaClientSDK::avsCommon::utils::playlistParser::EncryptionInfo::EncryptionInfo ( Method  method,
std::string  url,
std::string  initVector = std::string() 
)
inline

Constructor.

Parameters
methodThe encryption method of media.
urlThe URL for the encryption key to download.
initVectorThe intilization vector used for encryption.

Member Function Documentation

◆ isValid()

bool alexaClientSDK::avsCommon::utils::playlistParser::EncryptionInfo::isValid ( ) const
inline

Helper method to check if EncryptionInfo is valid.

Returns
true if encryption info is valid or false otherwise.

Member Data Documentation

◆ initVector

std::string alexaClientSDK::avsCommon::utils::playlistParser::EncryptionInfo::initVector

The initilization vector used for encryption.

◆ keyURL

std::string alexaClientSDK::avsCommon::utils::playlistParser::EncryptionInfo::keyURL

The URL of the encryption key.

◆ method

Method alexaClientSDK::avsCommon::utils::playlistParser::EncryptionInfo::method

Encryption method.

◆ totalDuration

std::chrono::milliseconds alexaClientSDK::avsCommon::utils::playlistParser::EncryptionInfo::totalDuration

The total duration of the content from the playlist.


The documentation for this struct was generated from the following file:

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0