1. /*
  2. * @(#)file SnmpEngineFactory.java
  3. * @(#)author Sun Microsystems, Inc.
  4. * @(#)version 1.12
  5. * @(#)date 04/09/15
  6. *
  7. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  8. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  9. *
  10. */
  11. package com.sun.jmx.snmp;
  12. /**
  13. * This <CODE>SnmpEngineFactory</CODE> is instantiating an <CODE>SnmpEngine</CODE> containing :
  14. * <ul>
  15. * <li> Message Processing Sub System + V1, V2 et V3 Message Processing Models</li>
  16. * <li> Security Sub System + User based Security Model (Id 3)</li>
  17. * <li> Access Control Sub System + Ip Acl + User based Access Control Model. See <CODE> IpAcl </CODE> and <CODE> UserAcl </CODE>.</li>
  18. * </ul>
  19. *
  20. * <p><b>This API is a Sun Microsystems internal API and is subject
  21. * to change without notice.</b></p>
  22. * @since 1.5
  23. */
  24. public interface SnmpEngineFactory {
  25. /**
  26. * The engine instantiation method.
  27. * @param p The parameters used to instantiate a new engine.
  28. * @throws IllegalArgumentException Throwed if one of the configuration file file doesn't exist (Acl files, security file).
  29. * @return The newly created SnmpEngine.
  30. */
  31. public SnmpEngine createEngine(SnmpEngineParameters p);
  32. /**
  33. * The engine instantiation method.
  34. * @param p The parameters used to instantiate a new engine.
  35. * @param ipacl The Ip ACL to pass to the Access Control Model.
  36. * @throws IllegalArgumentException Throwed if one of the configuration
  37. * file file doesn't exist (Acl files, security file).
  38. * @return The newly created SnmpEngine.
  39. */
  40. public SnmpEngine createEngine(SnmpEngineParameters p,
  41. InetAddressAcl ipacl);
  42. }