2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.snmp.internal.types;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.snmp4j.security.AuthHMAC128SHA224;
17 import org.snmp4j.security.AuthHMAC192SHA256;
18 import org.snmp4j.security.AuthHMAC256SHA384;
19 import org.snmp4j.security.AuthHMAC384SHA512;
20 import org.snmp4j.security.AuthMD5;
21 import org.snmp4j.security.AuthSHA;
22 import org.snmp4j.smi.OID;
25 * The {@link SnmpAuthProtocol} enum defines the possible authentication protocols for v3
27 * @author Jan N. Klug - Initial contribution
30 public enum SnmpAuthProtocol {
33 HMAC128SHA224(AuthHMAC128SHA224.ID),
34 HMAC192SHA256(AuthHMAC192SHA256.ID),
35 HMAC256SHA384(AuthHMAC256SHA384.ID),
36 HMAC384SHA512(AuthHMAC384SHA512.ID);
38 private final OID oid;
40 SnmpAuthProtocol(OID oid) {
45 * get the OID for this authentication protocol
47 * @return the corresponding OID