1. /*
  2. * @(#)file SnmpSecurityException.java
  3. * @(#)author Sun Microsystems, Inc.
  4. * @(#)version 1.16
  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 exception is thrown when an error occurs in an <CODE> SnmpSecurityModel </CODE>.
  14. * <p><b>This API is a Sun Microsystems internal API and is subject
  15. * to change without notice.</b></p>
  16. * @since 1.5
  17. */
  18. public class SnmpSecurityException extends Exception {
  19. /**
  20. * The current request varbind list.
  21. */
  22. public SnmpVarBind[] list = null;
  23. /**
  24. * The status of the exception. See {@link com.sun.jmx.snmp.SnmpDefinitions} for possible values.
  25. */
  26. public int status = SnmpDefinitions.snmpReqUnknownError;
  27. /**
  28. * The current security model related security parameters.
  29. */
  30. public SnmpSecurityParameters params = null;
  31. /**
  32. * The current context engine Id.
  33. */
  34. public byte[] contextEngineId = null;
  35. /**
  36. * The current context name.
  37. */
  38. public byte[] contextName = null;
  39. /**
  40. * The current flags.
  41. */
  42. public byte flags = (byte) SnmpDefinitions.noAuthNoPriv;
  43. /**
  44. * Constructor.
  45. * @param msg The exception msg to display.
  46. */
  47. public SnmpSecurityException(String msg) {
  48. super(msg);
  49. }
  50. }