Package org.xbill.DNS
Class DSRecord
java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.DSRecord
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Record>
- Direct Known Subclasses:
CDSRecord
DS - contains a Delegation Signer record, which acts as a placeholder for KEY records in the
parent zone.
- Author:
- David Blacka, Brian Wellington
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDSRecord(Name name, int type, int dclass, long ttl, int footprint, int alg, int digestid, byte[] digest) Creates a DS Record from the given dataCreates a DS Record from the given dataDSRecord(Name name, int dclass, long ttl, int digestid, DNSKEYRecord key) Creates a DS Record from the given data -
Method Summary
Modifier and TypeMethodDescriptionintReturns the key's algorithm.byte[]Returns the binary hash of the key.intReturns the key's Digest ID.intReturns the key's footprint.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 rdata to a Stringprotected 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
-
Field Details
-
SHA1_DIGEST_ID
Deprecated.SHA1 delegation signer digest ID.- See Also:
-
SHA256_DIGEST_ID
Deprecated.SHA256 delegation signer digest ID.- See Also:
-
GOST3411_DIGEST_ID
Deprecated.GOST4311 delegation signer digest ID.- See Also:
-
SHA384_DIGEST_ID
Deprecated.SHA384 delegation signer digest ID.- See Also:
-
-
Constructor Details
-
DSRecord
protected DSRecord(Name name, int type, int dclass, long ttl, int footprint, int alg, int digestid, byte[] digest) Creates a DS Record from the given data- Parameters:
footprint- The original KEY record's footprint (keyid).alg- The original key algorithm.digestid- The digest id code.digest- A hash of the original key.
-
DSRecord
public DSRecord(Name name, int dclass, long ttl, int footprint, int alg, int digestid, byte[] digest) Creates a DS Record from the given data- Parameters:
footprint- The original KEY record's footprint (keyid).alg- The original key algorithm.digestid- The digest id code.digest- A hash of the original key.
-
DSRecord
Creates a DS Record from the given data- Parameters:
digestid- The digest id code.key- The key to digest
-
-
Method Details
-
rrFromWire
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden- Specified by:
rrFromWirein classRecord- Throws:
IOException
-
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
-
rrToString
Converts rdata to a String- Specified by:
rrToStringin classRecord
-
getAlgorithm
public int getAlgorithm()Returns the key's algorithm. -
getDigestID
public int getDigestID()Returns the key's Digest ID. -
getDigest
public byte[] getDigest()Returns the binary hash of the key. -
getFootprint
public int getFootprint()Returns the key's footprint. -
rrToWire
Description copied from class:RecordConverts the type-specific RR to wire format - must be overridden.
-
DNSSEC.Digest