Imported Upstream version 1.1.1
[platform/upstream/iotivity.git] / android / android_api / base / src / main / java / org / iotivity / base / OicSecValidity.java
1 /*
2  *******************************************************************
3  *
4  * Copyright 2016 Samsung Electronics All Rights Reserved.
5  *
6  *-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  *      http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  *
20  *-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
21  */
22
23 package org.iotivity.base;
24
25 import java.util.List;
26 public class OicSecValidity {
27         private String period;
28         private List<String> recurrences;
29         private int recurrenceLen;
30
31         public OicSecValidity(String period, List<String> recurrences,
32                 int recurrenceLen) {
33             super();
34             this.period = period;
35             this.recurrences = recurrences;
36             this.recurrenceLen = recurrenceLen;
37         }
38
39         public String getPeriod() {
40             return period;
41         }
42
43         public void setPeriod(String period) {
44             this.period = period;
45         }
46
47         public List<String> getRecurrencesList() {
48             return recurrences;
49         }
50
51         public String getRecurrences(int i) {
52             return this.recurrences.get(i);
53         }
54
55         public void setRecurrences(List<String> recurrences) {
56             this.recurrences = recurrences;
57         }
58
59         public int getRecurrenceLen() {
60             return recurrenceLen;
61         }
62
63         public void setRecurrenceLen(int recurrenceLen) {
64             this.recurrenceLen = recurrenceLen;
65         }
66
67 }