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.SecurityLevel;
19 * The {@link SnmpSecurityModel} enum defines the security model for v3
21 * @author Jan N. Klug - Initial contribution
24 public enum SnmpSecurityModel {
25 NO_AUTH_NO_PRIV(SecurityLevel.NOAUTH_NOPRIV),
26 AUTH_NO_PRIV(SecurityLevel.AUTH_NOPRIV),
27 AUTH_PRIV(SecurityLevel.AUTH_PRIV);
29 private final int securityLevel;
31 SnmpSecurityModel(int securityLevel) {
32 this.securityLevel = securityLevel;
36 * get the numeric security level
38 * @return the int representing this security level
40 public int getSecurityLevel() {