4 * Copyright (c) 2005 VeriSign. All rights reserved.
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met:
9 * 1. Redistributions of source code must retain the above copyright notice,
10 * this list of conditions and the following disclaimer. 2. Redistributions in
11 * binary form must reproduce the above copyright notice, this list of
12 * conditions and the following disclaimer in the documentation and/or other
13 * materials provided with the distribution. 3. The name of the author may not
14 * be used to endorse or promote products derived from this software without
15 * specific prior written permission.
17 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
20 * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
22 * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
23 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
24 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 package com.versign.tat.dnssec;
33 * Codes for DNSSEC security statuses.
37 public class SecurityStatus
41 * UNCHECKED means that object has yet to be validated.
43 public static final byte UNCHECKED = 0;
45 * BOGUS means that the object (RRset or message) failed to validate
46 * (according to local policy), but should have validated.
48 public static final byte BOGUS = 1;
50 * BAD is a synonym for BOGUS.
52 public static final byte BAD = BOGUS;
54 * INDTERMINATE means that the object is insecure, but not authoritatively
55 * so. Generally this means that the RRset is not below a configured trust
58 public static final byte INDETERMINATE = 2;
60 * INSECURE means that the object is authoritatively known to be insecure.
61 * Generally this means that this RRset is below a trust anchor, but also
62 * below a verified, insecure delegation.
64 public static final byte INSECURE = 3;
66 * SECURE means that the object (RRset or message) validated according to
69 public static final byte SECURE = 4;
73 public static String string(int status)
84 return "Indeterminate";
92 public SecurityStatus()
97 public SecurityStatus(byte status)
102 public byte getStatus()
107 public void setStatus(byte status)
109 this.status = status;