1 20 21 22 package org.snmp4j.agent.security; 23 24 import org.snmp4j.smi.OctetString; 25 import org.snmp4j.smi.OID; 26 import org.snmp4j.security.SecurityModel; 28 import org.snmp4j.security.SecurityLevel; 29 30 39 public interface VACM { 40 41 int VIEW_NOTIFY = 0; 42 int VIEW_READ = 1; 43 int VIEW_WRITE = 2; 44 45 int VACM_OK = 0; 46 int VACM_NOT_IN_VIEW = 1; 47 int VACM_NO_SUCH_VIEW = 2; 48 int VACM_NO_SUCH_CONTEXT = 3; 49 int VACM_NO_GROUP_NAME = 4; 50 int VACM_NO_ACCESS_ENTRY = 5; 51 int VACM_OTHER_ERROR = 6; 52 53 73 int isAccessAllowed(OctetString context, 74 OctetString securityName, 75 int securityModel, 76 int securityLevel, 77 int viewType, 78 OID oid); 79 80 91 int isAccessAllowed(OctetString viewName, OID oid); 92 93 110 OctetString getViewName(OctetString context, 111 OctetString securityName, 112 int securityModel, 113 int securityLevel, 114 int viewType); 115 } 116 | Popular Tags |