Modifier and Type | Field and Description |
---|---|
private int |
alg |
private byte[] |
digest |
private int |
digestid |
private int |
footprint |
static int |
SHA1_DIGEST_ID
Deprecated.
|
static int |
SHA256_DIGEST_ID
Deprecated.
|
Constructor and Description |
---|
DLVRecord() |
DLVRecord(Name name,
int dclass,
long ttl,
int footprint,
int alg,
int digestid,
byte[] digest)
Creates a DLV Record from the given data
|
Modifier and Type | Method and Description |
---|---|
int |
getAlgorithm()
Returns the key's algorithm.
|
byte[] |
getDigest()
Returns the binary hash of the key.
|
int |
getDigestID()
Returns the key's Digest ID.
|
int |
getFootprint()
Returns the key's footprint.
|
protected void |
rdataFromString(Tokenizer st,
Name origin)
Converts the text format of an RR to the internal format - must be overriden
|
protected void |
rrFromWire(DNSInput in)
Converts the type-specific RR to wire format - must be overridden
|
protected java.lang.String |
rrToString()
Converts rdata to a String
|
protected void |
rrToWire(DNSOutput out,
Compression c,
boolean canonical)
Converts the type-specific RR to wire format - must be overridden.
|
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, setTTL, toString, toWire, toWire, toWireCanonical, unknownToString, withDClass, withName, writeReplace
@Deprecated public static final int SHA1_DIGEST_ID
DNSSEC.Digest.SHA1
@Deprecated public static final int SHA256_DIGEST_ID
DNSSEC.Digest.SHA256
private int footprint
private int alg
private int digestid
private byte[] digest
DLVRecord()
public DLVRecord(Name name, int dclass, long ttl, int footprint, int alg, int digestid, byte[] digest)
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.protected void rrFromWire(DNSInput in) throws java.io.IOException
Record
rrFromWire
in class Record
java.io.IOException
protected void rdataFromString(Tokenizer st, Name origin) throws java.io.IOException
Record
rdataFromString
in class Record
java.io.IOException
protected java.lang.String rrToString()
rrToString
in class Record
public int getAlgorithm()
public int getDigestID()
public byte[] getDigest()
public int getFootprint()
protected void rrToWire(DNSOutput out, Compression c, boolean canonical)
Record