|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.knipp.rritoolkit.dns.DnsEntry
de.knipp.rritoolkit.dns.DnsEntryDNSKEY
public class DnsEntryDNSKEY
class that stores the DNSKEY information.
Field Summary | |
---|---|
private int |
algorithm
the algorithm |
private int |
flags
the flags |
private java.lang.String |
keyDataBase64
the key data (Base64 encoded) |
private byte[] |
keyDataBinary
the key data (binary) |
private int |
protocol
the protocol |
Constructor Summary | |
---|---|
protected |
DnsEntryDNSKEY(org.w3c.dom.Element el)
constructor |
|
DnsEntryDNSKEY(int keyFlags,
int proto,
int alg,
byte[] data)
constructor |
|
DnsEntryDNSKEY(int keyFlags,
int proto,
int alg,
java.lang.String data)
constructor |
protected |
DnsEntryDNSKEY(java.lang.String owner,
java.lang.String data)
constructor |
Method Summary | |
---|---|
void |
accept(DnsEntryVisitor visitor)
accept the given visitor |
DnsEntryDNSKEY |
clone()
create a clone of this instance. |
int |
getAlgorithm()
return the algorithm |
int |
getFlags()
return the flags |
java.lang.String |
getKeyDataBase64()
return the key data as a Base64 string |
byte[] |
getKeyDataBinary()
return the key data in binary representation |
int |
getProtocol()
return the protocol |
void |
toList(KVList list)
convert the instance to an entry in the given list |
java.lang.String |
toString()
create a string representation (for debugging purposes) |
void |
toXml(org.w3c.dom.Node node,
java.lang.String encodedDomainName)
convert the instance to XML |
Methods inherited from class de.knipp.rritoolkit.dns.DnsEntry |
---|
allFromList, fromXml, getOwner, isIPv6, setOwner |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private int flags
private int protocol
private int algorithm
private java.lang.String keyDataBase64
private byte[] keyDataBinary
Constructor Detail |
---|
public DnsEntryDNSKEY(int keyFlags, int proto, int alg, byte[] data)
keyFlags
- the flagsproto
- the protocolalg
- the algorithmdata
- the key datapublic DnsEntryDNSKEY(int keyFlags, int proto, int alg, java.lang.String data)
keyFlags
- the flagsproto
- the protocolalg
- the algorithmdata
- the key data, must be a valid Base64 stringprotected DnsEntryDNSKEY(java.lang.String owner, java.lang.String data) throws ResponseParseException
data
- the value of the key-value pairowner
- the encoded domain name
ResponseParseException
- on syntactical errorsprotected DnsEntryDNSKEY(org.w3c.dom.Element el) throws org.w3c.dom.DOMException, ResponseParseException
el
- the element
org.w3c.dom.DOMException
- on DOM exceptions
ResponseParseException
- on wrong contentMethod Detail |
---|
public void toList(KVList list) throws EncodeException
toList
in class DnsEntry
list
- the list
EncodeException
- if the encoding failspublic void toXml(org.w3c.dom.Node node, java.lang.String encodedDomainName) throws org.w3c.dom.DOMException, EncodeException
toXml
in class DnsEntry
node
- the node to append toencodedDomainName
- the encoded domain name from the domain
info data
org.w3c.dom.DOMException
- on DOM exceptions
EncodeException
- if the encoding failspublic void accept(DnsEntryVisitor visitor)
accept
in class DnsEntry
visitor
- the visitorpublic DnsEntryDNSKEY clone()
clone
in class DnsEntry
public java.lang.String toString()
toString
in class java.lang.Object
public int getFlags()
public int getProtocol()
public int getAlgorithm()
public java.lang.String getKeyDataBase64()
null
if not setpublic byte[] getKeyDataBinary() throws java.lang.IllegalArgumentException
null
if not set
java.lang.IllegalArgumentException
- if the internally stored Base64
is invalid
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |