public class DnsEntryDNSKEY extends DnsEntry
Modifier and Type | Field and Description |
---|---|
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
|
Modifier | Constructor and Description |
---|---|
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
|
Modifier and Type | Method and Description |
---|---|
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
|
private int flags
private int protocol
private int algorithm
private java.lang.String keyDataBase64
private byte[] keyDataBinary
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 nameResponseParseException
- on syntactical errorsprotected DnsEntryDNSKEY(org.w3c.dom.Element el) throws org.w3c.dom.DOMException, ResponseParseException
el
- the elementorg.w3c.dom.DOMException
- on DOM exceptionsResponseParseException
- on wrong contentpublic void toList(KVList list) throws EncodeException
toList
in class DnsEntry
list
- the listEncodeException
- 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 dataorg.w3c.dom.DOMException
- on DOM exceptionsEncodeException
- if the encoding failspublic void accept(DnsEntryVisitor visitor)
public DnsEntryDNSKEY clone()
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 setjava.lang.IllegalArgumentException
- if the internally stored Base64
is invalidCopyright © 2005-2013 Knipp Medien und Kommunikation GmbH