if ((!file.isFile()) || (!file.exists())) {
return null;
}
System.setProperty("jdmk.security.file", file.getAbsolutePath());
// Create the Security Parameters for the engine
SnmpEngineParameters engineParameters = new SnmpEngineParameters();
// Set V3 Security parameters
engineParameters.activateEncryption();
// Create the UACL controller
UserAcl uacls = (UserAcl) new SNMPUserAcl(configuration);
engineParameters.setUserAcl(uacls);
// V1/V2 Security parameters
InetAddressAcl acls =
(InetAddressAcl) new SNMPInetAddressAcl(configuration);