replace : iotivity -> iotivity-sec
[platform/upstream/iotivity.git] / android / android_api / base / src / main / java / org / iotivity / ca / OicCipher.java
1 /* ****************************************************************
2  *
3  * Copyright 2016 Samsung Electronics All Rights Reserved.
4  *
5  *
6  *
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
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
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.
18  *
19  ******************************************************************/
20
21 package org.iotivity.ca;
22
23 public enum OicCipher {
24     TLS_RSA_WITH_AES_256_CBC_SHA256(0x3D),
25     TLS_RSA_WITH_AES_128_GCM_SHA256(0x009C),
26     TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256(0xC02B),
27     TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8(0xC0AE),
28     TLS_ECDHE_ECDSA_WITH_AES_128_CCM(0xC0AC),
29     TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256(0xC023),
30     TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384(0xC024),
31     TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384(0xC02C),
32     TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA256(0xC037),
33     TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256(0xC027),
34     TLS_ECDH_anon_WITH_AES_128_CBC_SHA(0xC018);
35
36     private int cipher;
37
38     private OicCipher(int cipher) {
39         this.cipher = cipher;
40     }
41
42     public int getValue(){
43         return cipher;
44     }
45 }