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 classZONEMD Hash Algorithms.static classZONEMD Schemes. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate byte[]A byte array containing the output of the hash algorithm.private intAn 8-bit unsigned integer that identifies the cryptographic hash algorithm used to construct the digest.private intAn 8-bit unsigned integer that identifies the methods by which data is collated and presented as input to the hashing function.private longA 32-bit unsigned integer in network byte order. -
Constructor Summary
ConstructorsConstructorDescriptionZoneMDRecord(Name name, int dclass, long ttl, long serial, int scheme, int hashAlgorithm, byte[] digest) -
Method Summary
Modifier and TypeMethodDescriptionprivate StringgetDigestSizeExceptionMessage(int hashAlgorithm, byte[] digest) 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, checkByteArrayLength, checkName, checkU16, checkU32, checkU8, cloneRecord, compareTo, equals, fromString, fromString, fromWire, fromWire, fromWire, getAdditionalName, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToString, rdataToWireCanonical, sameRRset, sameRRset, setTTL, toString, toWire, toWire, toWireCanonical, unknownToString, withDClass, withName, writeReplace
-
Field Details
-
serial
private long serialA 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. -
scheme
private int schemeAn 8-bit unsigned integer that identifies the methods by which data is collated and presented as input to the hashing function.- See Also:
-
hashAlgorithm
private int hashAlgorithmAn 8-bit unsigned integer that identifies the cryptographic hash algorithm used to construct the digest.- See Also:
-
digest
private byte[] digestA byte array containing the output of the hash algorithm. The length is determined by.invalid reference
#getHashAlgorithm()- See Also:
-
-
Constructor Details
-
ZoneMDRecord
ZoneMDRecord() -
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
-
getDigestSizeExceptionMessage
-