Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbedConnectorInterfaceWithDM by
Authenticator.cpp
00001 /** 00002 * @file Authenticator.cpp 00003 * @brief mbed CoAP Endpoint Device Management Authenticator (base) class 00004 * @author Doug Anson 00005 * @version 1.0 00006 * @see 00007 * 00008 * Copyright (c) 2016 00009 * 00010 * Licensed under the Apache License, Version 2.0 (the "License"); 00011 * you may not use this file except in compliance with the License. 00012 * You may obtain a copy of the License at 00013 * 00014 * http://www.apache.org/licenses/LICENSE-2.0 00015 * 00016 * Unless required by applicable law or agreed to in writing, software 00017 * distributed under the License is distributed on an "AS IS" BASIS, 00018 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00019 * See the License for the specific language governing permissions and 00020 * limitations under the License. 00021 */ 00022 00023 // Class support 00024 #include "mbed-connector-interface/Authenticator.h" 00025 00026 // constructor 00027 Authenticator::Authenticator(const Logger *logger,const void *secret) { 00028 this->m_logger = (Logger *)logger; 00029 this->setSecret((void *)secret); 00030 } 00031 00032 // copy constructor 00033 Authenticator::Authenticator(const Authenticator &authenticator) { 00034 this->m_logger = authenticator.m_logger; 00035 this->m_secret = authenticator.m_secret; 00036 } 00037 00038 // set secret 00039 void Authenticator::setSecret(void *secret) { 00040 this->m_secret = secret; 00041 } 00042 00043 // destructor 00044 Authenticator::~Authenticator() { 00045 } 00046 00047 // authenticator 00048 bool Authenticator::authenticate(void * /*challenge */) { return false; }
Generated on Wed Jul 13 2022 01:24:02 by
