Package org.xbill.DNS
Class ZoneMDRecord
java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.ZoneMDRecord
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<Record>
ZONEMD Resource record.
- Since:
- 3.6
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
ZONEMD Hash Algorithms.static final class
ZONEMD Schemes. -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionZoneMDRecord
(Name name, int dclass, long ttl, long serial, int scheme, int hashAlgorithm, byte[] digest) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
A byte array containing the output of the hash algorithm.int
An 8-bit unsigned integer that identifies the cryptographic hash algorithm used to construct the digest.int
An 8-bit unsigned integer that identifies the methods by which data is collated and presented as input to the hashing function.long
A 32-bit unsigned integer in network byte order.protected void
rdataFromString
(Tokenizer st, Name origin) Converts the text format of an RR to the internal format - must be overridenprotected void
rrFromWire
(DNSInput in) Converts the type-specific RR to wire format - must be overriddenprotected String
Converts the type-specific RR to text format - must be overridden.protected void
rrToWire
(DNSOutput out, Compression c, boolean canonical) Converts the type-specific RR to wire format - must be overridden.Methods inherited from class org.xbill.DNS.Record
byteArrayFromString, byteArrayToString, compareTo, equals, fromString, fromString, fromWire, getAdditionalName, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, sameRRset, toString, toWire, toWireCanonical, unknownToString, withName
-
Constructor Details
-
ZoneMDRecord
public ZoneMDRecord(Name name, int dclass, long ttl, long serial, int scheme, int hashAlgorithm, byte[] digest)
-
-
Method Details
-
rrToWire
Description copied from class:Record
Converts the type-specific RR to wire format - must be overridden. -
rrFromWire
Description copied from class:Record
Converts the type-specific RR to wire format - must be overridden- Specified by:
rrFromWire
in classRecord
- Throws:
IOException
-
rrToString
Description copied from class:Record
Converts the type-specific RR to text format - must be overridden.- Specified by:
rrToString
in classRecord
-
rdataFromString
Description copied from class:Record
Converts the text format of an RR to the internal format - must be overriden- Specified by:
rdataFromString
in classRecord
- Throws:
IOException
-
getSerial
public long getSerial()A 32-bit unsigned integer in network byte order. It is the serial number from the zone's SOA record (RFC 1035, Section 3.3.13]) for which the zone digest was generated. -
getScheme
public int getScheme()An 8-bit unsigned integer that identifies the methods by which data is collated and presented as input to the hashing function.- See Also:
-
getHashAlgorithm
public int getHashAlgorithm()An 8-bit unsigned integer that identifies the cryptographic hash algorithm used to construct the digest.- See Also:
-
getDigest
public byte[] getDigest()A byte array containing the output of the hash algorithm. The length is determined bygetHashAlgorithm()
.- See Also:
-