Source release 19.6.0
GitOrigin-RevId: 13a33e34413c19da1bfe76abcc66be519c9ac9d1
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#define WVCDM_CORE_CRYPTO_WRAPPED_KEY_H_
|
||||
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
#include "wv_class_utils.h"
|
||||
|
||||
@@ -20,6 +21,8 @@ class CryptoWrappedKey {
|
||||
WVCDM_DEFAULT_COPY_AND_MOVE(CryptoWrappedKey);
|
||||
CryptoWrappedKey(Type type, const std::string& key)
|
||||
: type_(type), key_(key) {}
|
||||
CryptoWrappedKey(Type type, std::string&& key)
|
||||
: type_(type), key_(std::move(key)) {}
|
||||
|
||||
Type type() const { return type_; }
|
||||
void set_type(Type type) { type_ = type; }
|
||||
@@ -28,6 +31,7 @@ class CryptoWrappedKey {
|
||||
// Mutable reference getter for passing to OMECrypto.
|
||||
std::string& key() { return key_; }
|
||||
void set_key(const std::string& key) { key_ = key; }
|
||||
void set_key(std::string&& key) { key_ = std::move(key); }
|
||||
|
||||
void Clear() {
|
||||
type_ = kUninitialized;
|
||||
|
||||
Reference in New Issue
Block a user