FileDocCategorySizeDatePackage
SnmpAccessControlModel.javaAPI DocJava SE 5 API3407Fri Aug 26 14:55:06 BST 2005com.sun.jmx.snmp.internal

SnmpAccessControlModel

public interface SnmpAccessControlModel implements SnmpModel
Access Control Model interface. Every access control model must implement this interface in order to be integrated in the engine based framework.

This API is a Sun Microsystems internal API and is subject to change without notice.

since
1.5

Fields Summary
Constructors Summary
Methods Summary
public voidcheckAccess(int version, java.lang.String principal, int securityLevel, int pduType, int securityModel, byte[] contextName, com.sun.jmx.snmp.SnmpOid oid)
Method called by the dispatcher in order to control the access at an SnmpOid Level. If access is not allowed, an SnmpStatusException is thrown. This method is called after the checkPduAccess pdu based method.

param
version The SNMP protocol version number.
param
principal The request principal.
param
securityLevel The request security level as defined in SnmpEngine.
param
pduType The pdu type (get, set, ...).
param
securityModel The security model ID.
param
contextName The access control context name.
param
oid The OID to check.

public voidcheckPduAccess(int version, java.lang.String principal, int securityLevel, int pduType, int securityModel, byte[] contextName, com.sun.jmx.snmp.SnmpPdu pdu)
Method called by the dispatcher in order to control the access at an SNMP pdu Level. If access is not allowed, an SnmpStatusException is thrown. In case of exception, the access control is aborted. OIDs are not checked. This method should be called prior to the checkAccess OID based method.

param
version The SNMP protocol version number.
param
principal The request principal.
param
securityLevel The request security level as defined in SnmpEngine.
param
pduType The pdu type (get, set, ...).
param
securityModel The security model ID.
param
contextName The access control context name.
param
pdu The pdu to check.

public booleandisableSnmpV1V2SetRequest()
Disable SNMP V1 and V2 set requests. By default SNMP V1 and V2 set requests are not authorized.

return
boolean True the deactivation suceeded.

public booleanenableSnmpV1V2SetRequest()
Enable SNMP V1 and V2 set requests. Be aware that can lead to a security hole in a context of SNMP V3 management. By default SNMP V1 and V2 set requests are not authorized.

return
boolean True the activation suceeded.

public booleanisSnmpV1V2SetRequestAuthorized()
The SNMP V1 and V2 set requests authorization status. By default SNMP V1 and V2 set requests are not authorized.

return
boolean True SNMP V1 and V2 requests are authorized.