1 /* ****************************************************************
3 * Copyright 2016 Samsung Electronics All Rights Reserved.
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 ******************************************************************/
21 package org.iotivity.ca;
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);
38 private OicCipher(int cipher) {
42 public int getValue(){