blob: 7584c02c34d63a3efb6f686ba6241746917cbe09 [file] [log] [blame]
/********************************************************************
* 2014 -
* open source under Apache License Version 2.0
********************************************************************/
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef _HDFS_LIBHDFS3_CLIENT_FILEENCRYPTIONINFO_H_
#define _HDFS_LIBHDFS3_CLIENT_FILEENCRYPTIONINFO_H_
#include <string>
namespace Hdfs {
class FileEncryptionInfo {
public:
FileEncryptionInfo() :
cryptoProtocolVersion(0), suite(0){
}
int getSuite() const {
return suite;
}
void setSuite(int suite) {
this->suite = suite;
}
int getCryptoProtocolVersion() const {
return cryptoProtocolVersion;
}
void setCryptoProtocolVersion(int cryptoProtocolVersion) {
this->cryptoProtocolVersion = cryptoProtocolVersion;
}
const std::string & getKey() const{
return key;
}
void setKey(const std::string & key){
this->key = key;
}
const std::string & getKeyName() const{
return keyName;
}
void setKeyName(const std::string & keyName){
this->keyName = keyName;
}
const std::string & getIv() const{
return iv;
}
void setIv(const std::string & iv){
this->iv = iv;
}
const std::string & getEzKeyVersionName() const{
return ezKeyVersionName;
}
void setEzKeyVersionName(const std::string & ezKeyVersionName){
this->ezKeyVersionName = ezKeyVersionName;
}
private:
int cryptoProtocolVersion;
int suite;
std::string key;
std::string iv;
std::string keyName;
std::string ezKeyVersionName;
};
}
#endif