public class NSEC3 extends Data
Modifier and Type | Class and Description |
---|---|
static class |
NSEC3.HashAlgorithm
DNSSEC NSEC3 Hash Algorithms.
|
Modifier and Type | Field and Description |
---|---|
static byte |
FLAG_OPT_OUT
This Flag indicates whether this NSEC3 RR may cover unsigned
delegations.
|
byte |
flags
Bitmap of flags:
FLAG_OPT_OUT . |
NSEC3.HashAlgorithm |
hashAlgorithm
The cryptographic hash algorithm used.
|
byte |
hashAlgorithmByte
The byte value of the cryptographic hash algorithm used.
|
int |
iterations
The number of iterations the hash algorithm is applied.
|
List<Record.TYPE> |
types
The RR types existing at the original owner name.
|
Constructor and Description |
---|
NSEC3(byte hashAlgorithm,
byte flags,
int iterations,
byte[] salt,
byte[] nextHashed,
List<Record.TYPE> types) |
NSEC3(byte hashAlgorithm,
byte flags,
int iterations,
byte[] salt,
byte[] nextHashed,
Record.TYPE... types) |
Modifier and Type | Method and Description |
---|---|
void |
copySaltInto(byte[] dest,
int destPos) |
byte[] |
getNextHashed() |
String |
getNextHashedBase32() |
DnsLabel |
getNextHashedDnsLabel() |
byte[] |
getSalt() |
int |
getSaltLength() |
Record.TYPE |
getType()
The payload type.
|
static NSEC3 |
parse(DataInputStream dis,
int length) |
void |
serialize(DataOutputStream dos)
The internal method used to serialize Data subclasses.
|
String |
toString() |
equals, hashCode, length, toByteArray, toOutputStream, toOutputStream
public static final byte FLAG_OPT_OUT
public final NSEC3.HashAlgorithm hashAlgorithm
null
.hashAlgorithmByte
public final byte hashAlgorithmByte
public final byte flags
FLAG_OPT_OUT
.public final int iterations
public final List<Record.TYPE> types
public NSEC3(byte hashAlgorithm, byte flags, int iterations, byte[] salt, byte[] nextHashed, List<Record.TYPE> types)
public NSEC3(byte hashAlgorithm, byte flags, int iterations, byte[] salt, byte[] nextHashed, Record.TYPE... types)
public static NSEC3 parse(DataInputStream dis, int length) throws IOException
IOException
public Record.TYPE getType()
Data
public void serialize(DataOutputStream dos) throws IOException
Data
serialize
in class Data
dos
- the output stream to serialize to.IOException
- if an I/O error occurs.public byte[] getSalt()
public int getSaltLength()
public byte[] getNextHashed()
public String getNextHashedBase32()
public DnsLabel getNextHashedDnsLabel()
public void copySaltInto(byte[] dest, int destPos)