Program Listing for File CryptoKeyExchange.h
↰ Return to documentation for file (/tmp/ws/src/fastrtps/include/fastdds/rtps/security/cryptography/CryptoKeyExchange.h
)
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed 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 _FASTDDS_RTPS_SECURITY_CRYPTOGRAPHY_CRYPTOKEYEXCHANGE_H_
#define _FASTDDS_RTPS_SECURITY_CRYPTOGRAPHY_CRYPTOKEYEXCHANGE_H_
#include <fastdds/rtps/security/cryptography/CryptoTypes.h>
namespace eprosima {
namespace fastrtps {
namespace rtps {
namespace security {
class CryptoKeyExchange
{
public:
virtual ~CryptoKeyExchange(){}
virtual bool create_local_participant_crypto_tokens(
ParticipantCryptoTokenSeq& local_participant_crypto_tokens,
const ParticipantCryptoHandle& local_participant_crypto,
ParticipantCryptoHandle& remote_participant_crypto,
SecurityException& exception) = 0;
virtual bool set_remote_participant_crypto_tokens(
const ParticipantCryptoHandle &local_participant_crypto,
ParticipantCryptoHandle &remote_participant_crypto,
const ParticipantCryptoTokenSeq &remote_participant_tokens,
SecurityException &exception) = 0;
virtual bool create_local_datawriter_crypto_tokens(
DatawriterCryptoTokenSeq &local_datawriter_crypto_tokens,
DatawriterCryptoHandle &local_datawriter_crypto,
DatareaderCryptoHandle &remote_datareader_crypto,
SecurityException &exception) = 0;
virtual bool create_local_datareader_crypto_tokens(
DatareaderCryptoTokenSeq &local_datareader_crypto_tokens,
DatareaderCryptoHandle &local_datareader_crypto,
DatawriterCryptoHandle &remote_datawriter_crypto,
SecurityException &exception) = 0;
virtual bool set_remote_datareader_crypto_tokens(
DatawriterCryptoHandle &local_datawriter_crypto,
DatareaderCryptoHandle &remote_datareader_crypto,
const DatareaderCryptoTokenSeq &remote_datareader_tokens,
SecurityException &exception) = 0;
virtual bool set_remote_datawriter_crypto_tokens(
DatareaderCryptoHandle &local_datareader_crypto,
DatawriterCryptoHandle &remote_datawriter_crypto,
const DatawriterCryptoTokenSeq &remote_datawriter_tokens,
SecurityException &exception) = 0;
virtual bool return_crypto_tokens(
const CryptoTokenSeq &crypto_tokens,
SecurityException &exception) = 0;
};
} //namespace eprosima
} //namespace fastrtps
} //namespace rtps
} //namespace security
#endif //_FASTDDS_RTPS_SECURITY_CRYPTOGRAPHY_CRYPTOKEYEXCHANGE_H_