Package org.minidns.record
Class NSEC3
- java.lang.Object
-
- org.minidns.record.Data
-
- org.minidns.record.NSEC3
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NSEC3.HashAlgorithm
DNSSEC NSEC3 Hash Algorithms.
-
Field Summary
Fields Modifier and Type Field 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.java.util.List<Record.TYPE>
types
The RR types existing at the original owner name.
-
Constructor Summary
Constructors Constructor Description NSEC3(byte hashAlgorithm, byte flags, int iterations, byte[] salt, byte[] nextHashed, java.util.List<Record.TYPE> types)
NSEC3(byte hashAlgorithm, byte flags, int iterations, byte[] salt, byte[] nextHashed, Record.TYPE... types)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
copySaltInto(byte[] dest, int destPos)
byte[]
getNextHashed()
java.lang.String
getNextHashedBase32()
DnsLabel
getNextHashedDnsLabel()
byte[]
getSalt()
int
getSaltLength()
Record.TYPE
getType()
The payload type.static NSEC3
parse(java.io.DataInputStream dis, int length)
void
serialize(java.io.DataOutputStream dos)
The internal method used to serialize Data subclasses.java.lang.String
toString()
-
Methods inherited from class org.minidns.record.Data
equals, hashCode, length, toByteArray, toOutputStream, toOutputStream
-
-
-
-
Field Detail
-
FLAG_OPT_OUT
public static final byte FLAG_OPT_OUT
This Flag indicates whether this NSEC3 RR may cover unsigned delegations.- See Also:
- Constant Field Values
-
hashAlgorithm
public final NSEC3.HashAlgorithm hashAlgorithm
The cryptographic hash algorithm used. If MiniDNS isn't aware of the hash algorithm, then this field will benull
.- See Also:
hashAlgorithmByte
-
hashAlgorithmByte
public final byte hashAlgorithmByte
The byte value of the cryptographic hash algorithm used.
-
flags
public final byte flags
Bitmap of flags:FLAG_OPT_OUT
.
-
iterations
public final int iterations
The number of iterations the hash algorithm is applied.
-
types
public final java.util.List<Record.TYPE> types
The RR types existing at the original owner name.
-
-
Constructor Detail
-
NSEC3
public NSEC3(byte hashAlgorithm, byte flags, int iterations, byte[] salt, byte[] nextHashed, java.util.List<Record.TYPE> types)
-
NSEC3
public NSEC3(byte hashAlgorithm, byte flags, int iterations, byte[] salt, byte[] nextHashed, Record.TYPE... types)
-
-
Method Detail
-
parse
public static NSEC3 parse(java.io.DataInputStream dis, int length) throws java.io.IOException
- Throws:
java.io.IOException
-
getType
public Record.TYPE getType()
Description copied from class:Data
The payload type.
-
serialize
public void serialize(java.io.DataOutputStream dos) throws java.io.IOException
Description copied from class:Data
The internal method used to serialize Data subclasses.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getSalt
public byte[] getSalt()
-
getSaltLength
public int getSaltLength()
-
getNextHashed
public byte[] getNextHashed()
-
getNextHashedBase32
public java.lang.String getNextHashedBase32()
-
getNextHashedDnsLabel
public DnsLabel getNextHashedDnsLabel()
-
copySaltInto
public void copySaltInto(byte[] dest, int destPos)
-
-