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 classZONEMD Hash Algorithms.static final classZONEMD 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.intAn 8-bit unsigned integer that identifies the cryptographic hash algorithm used to construct the digest.intAn 8-bit unsigned integer that identifies the methods by which data is collated and presented as input to the hashing function.longA 32-bit unsigned integer in network byte order.protected voidrdataFromString(Tokenizer st, Name origin) Converts the text format of an RR to the internal format - must be overridenprotected voidrrFromWire(DNSInput in) Converts the type-specific RR to wire format - must be overriddenprotected StringConverts the type-specific RR to text format - must be overridden.protected voidrrToWire(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:RecordConverts the type-specific RR to wire format - must be overridden. -
rrFromWire
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden- Specified by:
rrFromWirein classRecord- Throws:
IOException
-
rrToString
Description copied from class:RecordConverts the type-specific RR to text format - must be overridden.- Specified by:
rrToStringin classRecord
-
rdataFromString
Description copied from class:RecordConverts the text format of an RR to the internal format - must be overriden- Specified by:
rdataFromStringin 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:
-