Package org.minidns.record
Class NSEC3
java.lang.Object
org.minidns.record.Data
org.minidns.record.NSEC3
public class NSEC3 extends Data
NSEC3 record payload.
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNSEC3.HashAlgorithmDNSSEC NSEC3 Hash Algorithms. - 
Field Summary
Fields Modifier and Type Field Description static byteFLAG_OPT_OUTThis Flag indicates whether this NSEC3 RR may cover unsigned delegations.byteflagsBitmap of flags:FLAG_OPT_OUT.NSEC3.HashAlgorithmhashAlgorithmThe cryptographic hash algorithm used.bytehashAlgorithmByteThe byte value of the cryptographic hash algorithm used.intiterationsThe number of iterations the hash algorithm is applied.List<Record.TYPE>typesThe RR types existing at the original owner name. - 
Constructor Summary
Constructors Constructor 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) - 
Method Summary
Modifier and Type Method Description voidcopySaltInto(byte[] dest, int destPos)byte[]getNextHashed()StringgetNextHashedBase32()DnsLabelgetNextHashedDnsLabel()byte[]getSalt()intgetSaltLength()Record.TYPEgetType()The payload type.static NSEC3parse(DataInputStream dis, int length)voidserialize(DataOutputStream dos)The internal method used to serialize Data subclasses.StringtoString()Methods inherited from class org.minidns.record.Data
equals, hashCode, length, toByteArray, toOutputStream, toOutputStream 
- 
Field Details
- 
FLAG_OPT_OUT
public static final byte FLAG_OPT_OUTThis Flag indicates whether this NSEC3 RR may cover unsigned delegations.- See Also:
 - Constant Field Values
 
 - 
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 hashAlgorithmByteThe byte value of the cryptographic hash algorithm used. - 
flags
public final byte flagsBitmap of flags:FLAG_OPT_OUT. - 
iterations
public final int iterationsThe number of iterations the hash algorithm is applied. - 
types
The RR types existing at the original owner name. 
 - 
 - 
Constructor Details
- 
NSEC3
public NSEC3(byte hashAlgorithm, byte flags, int iterations, byte[] salt, byte[] nextHashed, List<Record.TYPE> types) - 
NSEC3
public NSEC3(byte hashAlgorithm, byte flags, int iterations, byte[] salt, byte[] nextHashed, Record.TYPE... types) 
 - 
 - 
Method Details
- 
parse
- Throws:
 IOException
 - 
getType
Description copied from class:DataThe payload type. - 
serialize
Description copied from class:DataThe internal method used to serialize Data subclasses.- Specified by:
 serializein classData- Parameters:
 dos- the output stream to serialize to.- Throws:
 IOException- if an I/O error occurs.
 - 
toString
 - 
getSalt
public byte[] getSalt() - 
getSaltLength
public int getSaltLength() - 
getNextHashed
public byte[] getNextHashed() - 
getNextHashedBase32
 - 
getNextHashedDnsLabel
 - 
copySaltInto
public void copySaltInto(byte[] dest, int destPos) 
 -