Merge branch 'master' into extended-easysetup
[platform/upstream/iotivity.git] / service / easy-setup / mediator / richsdk / android / EasySetupCore / src / main / java / org / iotivity / service / easysetup / mediator / SecurityProvisioningStatus.java
1 /**
2  * ***************************************************************
3  *
4  * Copyright 2016 Samsung Electronics All Rights Reserved.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  * ****************************************************************
19  */
20
21 package org.iotivity.service.easysetup.mediator;
22
23 import android.util.Log;
24
25 import org.iotivity.service.easysetup.mediator.enums.ESResult;
26
27 /**
28  * This class indicates a result if a provisionSecurity API succeed or fails and
29  * a target Enrollee's device ID
30  */
31 public class SecurityProvisioningStatus
32 {
33     private ESResult mResult;
34     private String mDevUUID;
35
36     /**
37      * Constructor
38      *
39      * @param result a result of security provisioning
40      * @param uuid a device ID of a target Enrollee
41      */
42     public SecurityProvisioningStatus(int result, String uuid)
43     {
44         mResult = ESResult.fromInt(result);
45         mDevUUID = uuid;
46     }
47
48     /**
49      * Get a Result of security provisioning
50      *
51      * @return ESResult a result of security provisioning
52      */
53     public ESResult getESResult()
54     {
55         return mResult;
56     }
57
58     /**
59      * Get a device ID of a target Enrollee
60      *
61      * @return String a device ID of a target Enrollee
62      */
63     public String getDevUUID()
64     {
65         return mDevUUID;
66     }
67 };