use "OptOut" instead of "OptIn" to match RFC 5155 terminology; formatting.
git-svn-id: https://svn.verisignlabs.com/jdnssec/tools/trunk@114 4cbd57fe-54e5-0310-bd9a-f30fe5ea5e6e
This commit is contained in:
parent
4073e6a576
commit
09d21a1d67
@ -72,8 +72,8 @@ public class ProtoNSEC3
|
|||||||
long ttl, byte hashAlg, byte flags, int iterations, byte[] salt,
|
long ttl, byte hashAlg, byte flags, int iterations, byte[] salt,
|
||||||
byte[] next, int[] types)
|
byte[] next, int[] types)
|
||||||
{
|
{
|
||||||
this(owner, originalOwner, zone, dclass, ttl, hashAlg, flags,
|
this(owner, originalOwner, zone, dclass, ttl, hashAlg, flags, iterations,
|
||||||
iterations, salt, next, TypeMap.fromTypes(types));
|
salt, next, TypeMap.fromTypes(types));
|
||||||
}
|
}
|
||||||
|
|
||||||
private String hashToString(byte[] hash)
|
private String hashToString(byte[] hash)
|
||||||
@ -109,20 +109,21 @@ public class ProtoNSEC3
|
|||||||
this.next = next;
|
this.next = next;
|
||||||
}
|
}
|
||||||
|
|
||||||
public byte getFlags()
|
public byte getFlags()
|
||||||
{
|
{
|
||||||
return flags;
|
return flags;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean getOptInFlag()
|
public boolean getOptOutFlag()
|
||||||
{
|
{
|
||||||
return (flags & NSEC3Record.OPT_OUT_FLAG) != 0;
|
return (flags & NSEC3Record.OPT_OUT_FLAG) != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setOptInFlag(boolean optInFlag)
|
public void setOptOutFlag(boolean optOutFlag)
|
||||||
{
|
{
|
||||||
if (optInFlag) this.flags |= NSEC3Record.OPT_OUT_FLAG;
|
if (optOutFlag) this.flags |= NSEC3Record.OPT_OUT_FLAG;
|
||||||
else this.flags &= ~NSEC3Record.OPT_OUT_FLAG;
|
else
|
||||||
|
this.flags &= ~NSEC3Record.OPT_OUT_FLAG;
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getTTL()
|
public long getTTL()
|
||||||
@ -182,11 +183,10 @@ public class ProtoNSEC3
|
|||||||
|
|
||||||
public NSEC3Record getNSEC3Record()
|
public NSEC3Record getNSEC3Record()
|
||||||
{
|
{
|
||||||
String comment = (originalOwner == null)
|
String comment = (originalOwner == null) ? "(unknown original ownername)"
|
||||||
? "(unknown original ownername)"
|
|
||||||
: originalOwner.toString();
|
: originalOwner.toString();
|
||||||
return new NSEC3Record(getName(), dclass, ttl, hashAlg, flags,
|
return new NSEC3Record(getName(), dclass, ttl, hashAlg, flags, iterations,
|
||||||
iterations, salt, next, getTypes(), comment);
|
salt, next, getTypes(), comment);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void mergeTypes(TypeMap new_types)
|
public void mergeTypes(TypeMap new_types)
|
||||||
|
Loading…
Reference in New Issue
Block a user