Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.util.dns
Class SecureMessage

java.lang.Object
  extended by org.xbill.DNS.Message
      extended by net.java.sip.communicator.util.dns.SecureMessage
All Implemented Interfaces:
Cloneable

public class SecureMessage
extends org.xbill.DNS.Message

DNS Message that adds DNSSEC validation information.

Author:
Ingo Bauersachs

Field Summary
 
Fields inherited from class org.xbill.DNS.Message
MAXLENGTH
 
Constructor Summary
SecureMessage(UnboundResult msg)
          Creates a new instance of this class based on data received from an Unbound resolve.
 
Method Summary
 String getBogusReason()
          If the result is bogus this contains a string that describes the failure.
 boolean isBogus()
          Indicates if there was a validation failure.
 boolean isSecure()
          Indicates whether the answer is secure.
 String toString()
          Converts the Message to a String.
 
Methods inherited from class org.xbill.DNS.Message
addRecord, clone, findRecord, findRecord, findRRset, findRRset, getHeader, getOPT, getQuestion, getRcode, getSectionArray, getSectionRRsets, getTSIG, isSigned, isVerified, newQuery, newUpdate, numBytes, removeAllRecords, removeRecord, sectionToString, setHeader, setTSIG, toWire, toWire
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SecureMessage

public SecureMessage(UnboundResult msg)
              throws IOException
Creates a new instance of this class based on data received from an Unbound resolve.

Parameters:
msg - The answer of the Unbound resolver.
Throws:
IOException
Method Detail

isSecure

public boolean isSecure()
Indicates whether the answer is secure.

Returns:
True, if the result is validated securely.

isBogus

public boolean isBogus()
Indicates if there was a validation failure.

Returns:
If the result was not secure (secure == false), and this result is due to a security failure, bogus is true.

getBogusReason

public String getBogusReason()
If the result is bogus this contains a string that describes the failure.

Returns:
string that describes the failure.

toString

public String toString()
Converts the Message to a String. The fields secure, bogus and whyBogus are append as a comment.

Overrides:
toString in class org.xbill.DNS.Message

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.