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:
David Blacka 2009-02-02 04:58:18 +00:00
parent 4073e6a576
commit 09d21a1d67

View File

@ -72,8 +72,8 @@ public class ProtoNSEC3
long ttl, byte hashAlg, byte flags, int iterations, byte[] salt,
byte[] next, int[] types)
{
this(owner, originalOwner, zone, dclass, ttl, hashAlg, flags,
iterations, salt, next, TypeMap.fromTypes(types));
this(owner, originalOwner, zone, dclass, ttl, hashAlg, flags, iterations,
salt, next, TypeMap.fromTypes(types));
}
private String hashToString(byte[] hash)
@ -114,15 +114,16 @@ public class ProtoNSEC3
return flags;
}
public boolean getOptInFlag()
public boolean getOptOutFlag()
{
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;
else this.flags &= ~NSEC3Record.OPT_OUT_FLAG;
if (optOutFlag) this.flags |= NSEC3Record.OPT_OUT_FLAG;
else
this.flags &= ~NSEC3Record.OPT_OUT_FLAG;
}
public long getTTL()
@ -182,11 +183,10 @@ public class ProtoNSEC3
public NSEC3Record getNSEC3Record()
{
String comment = (originalOwner == null)
? "(unknown original ownername)"
String comment = (originalOwner == null) ? "(unknown original ownername)"
: originalOwner.toString();
return new NSEC3Record(getName(), dclass, ttl, hashAlg, flags,
iterations, salt, next, getTypes(), comment);
return new NSEC3Record(getName(), dclass, ttl, hashAlg, flags, iterations,
salt, next, getTypes(), comment);
}
public void mergeTypes(TypeMap new_types)