mbed Connector Interface simplification API on top of mbed-client
Fork of mbedConnectorInterfaceV3 by
NOTE:
This repo has been replaced with https://github.com/ARMmbed/mbedConnectorInterface. No further updates will occur with this repo. Please use the github repo instead. Thanks!
source/Authenticator.cpp@127:b4a661ff6fb9, 2017-09-26 (annotated)
- Committer:
- ansond
- Date:
- Tue Sep 26 16:01:31 2017 +0000
- Revision:
- 127:b4a661ff6fb9
- Parent:
- 38:bb6d2be4d54c
minor re-ordering of FCC init
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ansond | 13:9edad7677211 | 1 | /** |
ansond | 13:9edad7677211 | 2 | * @file Authenticator.cpp |
ansond | 13:9edad7677211 | 3 | * @brief mbed CoAP Endpoint Device Management Authenticator (base) class |
ansond | 13:9edad7677211 | 4 | * @author Doug Anson |
ansond | 13:9edad7677211 | 5 | * @version 1.0 |
ansond | 13:9edad7677211 | 6 | * @see |
ansond | 13:9edad7677211 | 7 | * |
ansond | 13:9edad7677211 | 8 | * Copyright (c) 2016 |
ansond | 13:9edad7677211 | 9 | * |
ansond | 13:9edad7677211 | 10 | * Licensed under the Apache License, Version 2.0 (the "License"); |
ansond | 13:9edad7677211 | 11 | * you may not use this file except in compliance with the License. |
ansond | 13:9edad7677211 | 12 | * You may obtain a copy of the License at |
ansond | 13:9edad7677211 | 13 | * |
ansond | 13:9edad7677211 | 14 | * http://www.apache.org/licenses/LICENSE-2.0 |
ansond | 13:9edad7677211 | 15 | * |
ansond | 13:9edad7677211 | 16 | * Unless required by applicable law or agreed to in writing, software |
ansond | 13:9edad7677211 | 17 | * distributed under the License is distributed on an "AS IS" BASIS, |
ansond | 13:9edad7677211 | 18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
ansond | 13:9edad7677211 | 19 | * See the License for the specific language governing permissions and |
ansond | 13:9edad7677211 | 20 | * limitations under the License. |
ansond | 13:9edad7677211 | 21 | */ |
ansond | 13:9edad7677211 | 22 | |
ansond | 13:9edad7677211 | 23 | // Class support |
ansond | 13:9edad7677211 | 24 | #include "mbed-connector-interface/Authenticator.h" |
ansond | 13:9edad7677211 | 25 | |
ansond | 13:9edad7677211 | 26 | // constructor |
ansond | 13:9edad7677211 | 27 | Authenticator::Authenticator(const Logger *logger,const void *secret) { |
ansond | 13:9edad7677211 | 28 | this->m_logger = (Logger *)logger; |
ansond | 13:9edad7677211 | 29 | this->setSecret((void *)secret); |
ansond | 13:9edad7677211 | 30 | } |
ansond | 13:9edad7677211 | 31 | |
ansond | 13:9edad7677211 | 32 | // copy constructor |
ansond | 13:9edad7677211 | 33 | Authenticator::Authenticator(const Authenticator &authenticator) { |
ansond | 13:9edad7677211 | 34 | this->m_logger = authenticator.m_logger; |
ansond | 13:9edad7677211 | 35 | this->m_secret = authenticator.m_secret; |
ansond | 13:9edad7677211 | 36 | } |
ansond | 13:9edad7677211 | 37 | |
ansond | 13:9edad7677211 | 38 | // set secret |
ansond | 13:9edad7677211 | 39 | void Authenticator::setSecret(void *secret) { |
ansond | 13:9edad7677211 | 40 | this->m_secret = secret; |
ansond | 13:9edad7677211 | 41 | } |
ansond | 13:9edad7677211 | 42 | |
ansond | 13:9edad7677211 | 43 | // destructor |
ansond | 13:9edad7677211 | 44 | Authenticator::~Authenticator() { |
ansond | 13:9edad7677211 | 45 | } |
ansond | 13:9edad7677211 | 46 | |
ansond | 13:9edad7677211 | 47 | // authenticator |
ansond | 38:bb6d2be4d54c | 48 | bool Authenticator::authenticate(void * /*challenge */) { return false; } |