com.sun.management.snmp
Class SnmpEngineParameters

java.lang.Object
  extended by com.sun.management.snmp.SnmpEngineParameters
All Implemented Interfaces:
Serializable

public class SnmpEngineParameters
extends Object
implements Serializable

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

Since:
Java DMK 5.1
See Also:
Serialized Form

Constructor Summary
SnmpEngineParameters()
           
 
Method Summary
 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 Java DMK 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 Java DMK Lcd.
 void setUserAcl(UserAcl uacl)
          Sets a customized user ACL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnmpEngineParameters

public SnmpEngineParameters()
Method Detail

setSecurityFile

public void setSecurityFile(String securityFile)
Sets the file to use for Java DMK Lcd. If no file is provided, the default location will be checked.


getSecurityFile

public String getSecurityFile()
Gets the file to use for Java DMK Lcd.

Returns:
The security file.

setUserAcl

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.management.snmp.usm.UserAcl.UserAcl is instantiated.

Parameters:
uacl - The user ACL to use.

getUserAcl

public UserAcl getUserAcl()
Gets the customized user ACL.

Returns:
The customized user ACL.

activateEncryption

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)


deactivateEncryption

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)


isEncryptionEnabled

public boolean isEncryptionEnabled()
Check if encryption is activated. By default the encryption is not activated.

Returns:
The encryption activation status.

setEngineId

public void setEngineId(SnmpEngineId engineId)
Set the engine Id.

Parameters:
engineId - The engine Id to use.

getEngineId

public SnmpEngineId getEngineId()
Get the engine Id.

Returns:
The engineId.

Open Source build 02
opendmk-1.0-b02 2007.10.01_19:17:46_MEST

Copyright 1998-2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.