public class NSEC3PARAMRecord extends Record
| Modifier and Type | Field and Description |
|---|---|
private int |
flags |
private int |
hashAlg |
private int |
iterations |
private byte[] |
salt |
| Constructor and Description |
|---|
NSEC3PARAMRecord() |
NSEC3PARAMRecord(Name name,
int dclass,
long ttl,
int hashAlg,
int flags,
int iterations,
byte[] salt)
Creates an NSEC3PARAM record from the given data.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getFlags()
Returns the flags
|
int |
getHashAlgorithm()
Returns the hash algorithm
|
int |
getIterations()
Returns the number of iterations
|
byte[] |
getSalt()
Returns the salt
|
byte[] |
hashName(Name name)
Hashes a name with the parameters of this NSEC3PARAM record.
|
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, writeReplaceprivate int hashAlg
private int flags
private int iterations
private byte[] salt
NSEC3PARAMRecord()
public NSEC3PARAMRecord(Name name, int dclass, long ttl, int hashAlg, int flags, int iterations, byte[] salt)
name - The ownername of the NSEC3PARAM record (generally the zone name).dclass - The class.ttl - The TTL.hashAlg - The hash algorithm.flags - The value of the flags field.iterations - The number of hash iterations.salt - The salt to use (may be null).protected void rrFromWire(DNSInput in) throws java.io.IOException
RecordrrFromWire in class Recordjava.io.IOExceptionprotected void rrToWire(DNSOutput out, Compression c, boolean canonical)
Recordprotected void rdataFromString(Tokenizer st, Name origin) throws java.io.IOException
RecordrdataFromString in class Recordjava.io.IOExceptionprotected java.lang.String rrToString()
rrToString in class Recordpublic int getHashAlgorithm()
public int getFlags()
public int getIterations()
public byte[] getSalt()
public byte[] hashName(Name name) throws java.security.NoSuchAlgorithmException
name - The name to hashjava.security.NoSuchAlgorithmException - The hash algorithm is unknown.