Modifier and Type | Class and Description |
---|---|
static class |
DSRecord.Digest
Deprecated.
use
DNSSEC.Digest |
Modifier and Type | Field and Description |
---|---|
private int |
alg |
private byte[] |
digest |
private int |
digestid |
private int |
footprint |
static int |
GOST3411_DIGEST_ID
Deprecated.
|
static int |
SHA1_DIGEST_ID
Deprecated.
|
static int |
SHA256_DIGEST_ID
Deprecated.
|
static int |
SHA384_DIGEST_ID
Deprecated.
|
Modifier | Constructor and Description |
---|---|
(package private) |
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
|
|
DSRecord(Name name,
int dclass,
long ttl,
int digestid,
DNSKEYRecord key)
Creates a DS Record from the given data
|
|
DSRecord(Name name,
int dclass,
long ttl,
int footprint,
int alg,
int digestid,
byte[] digest)
Creates a DS 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
@Deprecated public static final int GOST3411_DIGEST_ID
DNSSEC.Digest.GOST3411
@Deprecated public static final int SHA384_DIGEST_ID
DNSSEC.Digest.SHA384
private int footprint
private int alg
private int digestid
private byte[] digest
DSRecord()
protected DSRecord(Name name, int type, 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.public DSRecord(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.public DSRecord(Name name, int dclass, long ttl, int digestid, DNSKEYRecord key)
digestid
- The digest id code.key
- The key to digestprotected 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