AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Static Public Member Functions | List of all members
alexaClientSDK::acsdkAudioPlayer::Util Class Reference

#include <Util.h>

Static Public Member Functions

static std::string generateMD5Hash (const std::string &input, const std::shared_ptr< cryptoInterfaces::CryptoFactoryInterface > &cryptoFactory)
 
static std::string getDomainNameFromUrl (const std::string &url)
 

Member Function Documentation

◆ generateMD5Hash()

static std::string alexaClientSDK::acsdkAudioPlayer::Util::generateMD5Hash ( const std::string &  input,
const std::shared_ptr< cryptoInterfaces::CryptoFactoryInterface > &  cryptoFactory 
)
static

Generate MD5 Hash.

Parameters
inputto hash.
cryptoFactoryEncryption facilities factory.
Returns
string MD5 Hash of input or an empty string if hashing fails.

◆ getDomainNameFromUrl()

static std::string alexaClientSDK::acsdkAudioPlayer::Util::getDomainNameFromUrl ( const std::string &  url)
static

Get domain name from an Url "https://www.xyz.com/sfsf" will return "www.xyz.com".

Parameters
urlto parse
Returns
string of the hostname found in Url. Empty string if parsing is unsuccessful.

The documentation for this class 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