1// Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org)
2
3package org.xbill.DNS;
4
5/**
6 * Constants relating to the credibility of cached data, which is based on
7 * the data's source.  The constants NORMAL and ANY should be used by most
8 * callers.
9 * @see Cache
10 * @see Section
11 *
12 * @author Brian Wellington
13 */
14
15public final class Credibility {
16
17private
18Credibility() {}
19
20/** A hint or cache file on disk. */
21public static final int HINT			= 0;
22
23/** The additional section of a response. */
24public static final int ADDITIONAL		= 1;
25
26/** The additional section of a response. */
27public static final int GLUE			= 2;
28
29/** The authority section of a nonauthoritative response. */
30public static final int NONAUTH_AUTHORITY	= 3;
31
32/** The answer section of a nonauthoritative response. */
33public static final int NONAUTH_ANSWER		= 3;
34
35/** The authority section of an authoritative response. */
36public static final int AUTH_AUTHORITY		= 4;
37
38/** The answer section of a authoritative response. */
39public static final int AUTH_ANSWER		= 4;
40
41/** A zone. */
42public static final int ZONE			= 5;
43
44/** Credible data. */
45public static final int NORMAL			= 3;
46
47/** Data not required to be credible. */
48public static final int ANY			= 1;
49
50}
51