1. /*
  2. * @(#)file SnmpDataTypeEnums.java
  3. * @(#)author Sun Microsystems, Inc.
  4. * @(#)version 4.10
  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. // Copyright (c) 1995-96 by Cisco Systems, Inc.
  12. package com.sun.jmx.snmp;
  13. /**
  14. * Contains SNMP data type constants.
  15. * All members are static and can be used by any application.
  16. *
  17. *
  18. * <p><b>This API is a Sun Microsystems internal API and is subject
  19. * to change without notice.</b></p>
  20. * @version 4.10 12/19/03
  21. * @author Sun Microsystems, Inc
  22. * @author Cisco Systems, Inc.
  23. */
  24. public interface SnmpDataTypeEnums {
  25. // ASN1 Type definitions.
  26. //-----------------------
  27. /**
  28. * ASN.1 tag for representing the boolean type.
  29. */
  30. static public final int BooleanTag= 1;
  31. /**
  32. * ASN.1 tag for representing the integer type.
  33. */
  34. static public final int IntegerTag= 2;
  35. /**
  36. * ASN.1 tag for representing the bit string type.
  37. */
  38. static public final int BitStringTag= 2;
  39. /**
  40. * ASN.1 tag for representing the octet string type.
  41. */
  42. static public final int OctetStringTag= 4;
  43. /**
  44. * ASN.1 tag for representing the null type.
  45. */
  46. static public final int NullTag= 5;
  47. /**
  48. * ASN.1 tag for representing the Object Identifier type.
  49. */
  50. static public final int ObjectIdentiferTag= 6;
  51. /**
  52. * Represents a unknown syntax type. No meaning in an ASN.1 context.
  53. */
  54. final public static int UnknownSyntaxTag = 0xFF ;
  55. /**
  56. * ASN.1 tag for a <CODE>SEQUENCE</CODE> or <CODE>SEQUENCE OF</CODE>.
  57. */
  58. final public static int SequenceTag = 0x30 ;
  59. /**
  60. * Represents an SNMP table. No meaning in an ASN.1 context.
  61. */
  62. final public static int TableTag = 0xFE ;
  63. // SNMP definitions.
  64. //------------------
  65. /**
  66. * ASN.1 Tag for application context.
  67. */
  68. static public final int ApplFlag = 64 ;
  69. /**
  70. * ASN.1 tag for implicit context.
  71. */
  72. static public final int CtxtFlag = 128 ;
  73. /**
  74. * ASN.1 tag for representing an IP address as defined in RFC 1155.
  75. */
  76. static public final int IpAddressTag = ApplFlag | 0 ;
  77. /**
  78. * ASN.1 tag for representing a <CODE>Counter32</CODE> as defined in RFC 1155.
  79. */
  80. static public final int CounterTag = ApplFlag | 1 ;
  81. /**
  82. * ASN.1 tag for representing a <CODE>Gauge32</CODE> as defined in RFC 1155.
  83. */
  84. static public final int GaugeTag = ApplFlag | 2 ;
  85. /**
  86. * ASN.1 tag for representing a <CODE>Timeticks</CODE> as defined in RFC 1155.
  87. */
  88. static public final int TimeticksTag = ApplFlag | 3 ;
  89. /**
  90. * ASN.1 tag for representing an <CODE>Opaque</CODE> type as defined in RFC 1155.
  91. */
  92. static public final int OpaqueTag = ApplFlag | 4 ;
  93. /**
  94. * ASN.1 tag for representing a <CODE>Counter64</CODE> as defined in RFC 1155.
  95. */
  96. static public final int Counter64Tag = ApplFlag | 6 ;
  97. /**
  98. * ASN.1 tag for representing an <CODE>Nsap</CODE> as defined in RFC 1902.
  99. */
  100. static final public int NsapTag = ApplFlag | 5 ;
  101. /**
  102. * ASN.1 tag for representing an <CODE>Unsigned32</CODE> integer as defined in RFC 1902.
  103. */
  104. static final public int UintegerTag = ApplFlag | 7 ;
  105. /**
  106. * ASN.1 tag for representing a <CODE>NoSuchObject</CODE> as defined in RFC 1902.
  107. */
  108. static final public int errNoSuchObjectTag = CtxtFlag | 0 ;
  109. /**
  110. * ASN.1 tag for representing a <CODE>NoSuchInstance</CODE> as defined in RFC 1902.
  111. */
  112. static final public int errNoSuchInstanceTag = CtxtFlag | 1 ;
  113. /**
  114. * ASN.1 tag for representing an <CODE>EndOfMibView</CODE> as defined in RFC 1902.
  115. */
  116. static final public int errEndOfMibViewTag = CtxtFlag | 2 ;
  117. }