public class

SnmpEngineParameters

extends Object
implements Serializable
java.lang.Object
   ↳ com.sun.jmx.snmp.SnmpEngineParameters

Class Overview

This class is used to pass some specific parameters to an SnmpEngineFactory .

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

Summary

Public Constructors
SnmpEngineParameters()
Public Methods
void activateEncryption()
Activate SNMP V3 encryption.
void deactivateEncryption()
Deactivate SNMP V3 encryption.
SnmpEngineId getEngineId()
Get the engine Id.
String getSecurityFile()
Gets the file to use for SNMP Runtime Lcd.
UserAcl getUserAcl()
Gets the customized user ACL.
boolean isEncryptionEnabled()
Check if encryption is activated.
void setEngineId(SnmpEngineId engineId)
Set the engine Id.
void setSecurityFile(String securityFile)
Sets the file to use for SNMP Runtime Lcd.
void setUserAcl(UserAcl uacl)
Sets a customized user ACL.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public SnmpEngineParameters ()

Public Methods

public void activateEncryption ()

Activate SNMP V3 encryption. By default the encryption is not activated. Be sure that the security provider classes needed for DES are in your classpath (eg:JCE classes)

public void deactivateEncryption ()

Deactivate SNMP V3 encryption. By default the encryption is not activated. Be sure that the security provider classes needed for DES are in your classpath (eg:JCE classes)

public SnmpEngineId getEngineId ()

Get the engine Id.

Returns
  • The engineId.

public String getSecurityFile ()

Gets the file to use for SNMP Runtime Lcd.

Returns
  • The security file.

public UserAcl getUserAcl ()

Gets the customized user ACL.

Returns
  • The customized user ACL.

public boolean isEncryptionEnabled ()

Check if encryption is activated. By default the encryption is not activated.

Returns
  • The encryption activation status.

public void setEngineId (SnmpEngineId engineId)

Set the engine Id.

Parameters
engineId The engine Id to use.

public void setSecurityFile (String securityFile)

Sets the file to use for SNMP Runtime Lcd. If no file is provided, the default location will be checked.

public void setUserAcl (UserAcl uacl)

Sets a customized user ACL. User Acl is used in order to check access for SNMP V3 requests. If no ACL is provided, com.sun.jmx.snmp.usm.UserAcl.UserAcl is instantiated.

Parameters
uacl The user ACL to use.