1 //******************************************************************
3 // Copyright 2015 Samsung Electronics All Rights Reserved.
5 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
7 // Licensed under the Apache License, Version 2.0 (the "License");
8 // you may not use this file except in compliance with the License.
9 // You may obtain a copy of the License at
11 // http://www.apache.org/licenses/LICENSE-2.0
13 // Unless required by applicable law or agreed to in writing, software
14 // distributed under the License is distributed on an "AS IS" BASIS,
15 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 // See the License for the specific language governing permissions and
17 // limitations under the License.
19 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
27 #include "ESRichCommon.h"
28 #include "RemoteEnrollee.h"
37 * This provides methods for Mediator devices to perform EasySetup of Enrollee devices.
39 * 1) Ownership transfer for enabling secured communication between Mediator and Enrollee
41 * 2) Provisioning of Enrollee devices using the credentails of target Enroller devices.
47 * API for getting the instance of EasySetup singleton class.
48 * @return EasySetup instance.
50 static EasySetup* getInstance();
53 * This API is used for creating a remote Enrollee instance.
55 * @throws ESBadRequestException If createEnrolleeDevice is invoked with the same
56 * provisioning information.
58 * @return Pointer to RemoteEnrollee instance.
60 std::shared_ptr<RemoteEnrollee> createRemoteEnrollee();
66 static EasySetup *s_instance;
71 #endif /* EASYSETUP_H_ */