1 /* Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd All Rights Reserved
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License
16 * @file client-key-impl.h
17 * @author Zofia Abramowska (z.abramowska@samsung.com)
19 * @brief Key implementation.
23 //#include <dpl/serialization.h>
25 #include <ckm/ckm-type.h>
26 #include <ckm/key-manager.h>
31 // : public ISerializable
35 // KeyImpl(IStream &stream);
36 KeyImpl(const RawBuffer &data, KeyType type, const RawBuffer &password);
37 KeyImpl(const KeyImpl &);
39 KeyImpl& operator=(const KeyImpl &);
40 KeyImpl& operator=(KeyImpl &&);
42 KeyType getType() const {
46 RawBuffer getKey() const {
51 return (m_type == KeyType::KEY_NONE) || m_key.empty();
54 // void Serialize(IStream &stream) const;