]> git.basschouten.com Git - openhab-addons.git/blob
c7caecc4366775110094a8bbab3066c88ba806a8
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License 2.0 which is available at
9  * http://www.eclipse.org/legal/epl-2.0
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.snmp.internal.types;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.snmp4j.security.PrivAES128;
17 import org.snmp4j.security.PrivAES192;
18 import org.snmp4j.security.PrivAES256;
19 import org.snmp4j.security.PrivDES;
20 import org.snmp4j.smi.OID;
21
22 /**
23  * The {@link SnmpPrivProtocol} enum defines the possible privacy protocols for v3
24  *
25  * @author Jan N. Klug - Initial contribution
26  */
27 @NonNullByDefault
28 public enum SnmpPrivProtocol {
29     AES128(PrivAES128.ID),
30     AES192(PrivAES192.ID),
31     AES256(PrivAES256.ID),
32     DES(PrivDES.ID);
33
34     private final OID oid;
35
36     SnmpPrivProtocol(OID oid) {
37         this.oid = oid;
38     }
39
40     /**
41      * get the OID for this privacy protocol
42      *
43      * @return the corresponding OID
44      */
45     public OID getOid() {
46         return oid;
47     }
48 }