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
1 changed files with 12 additions and 12 deletions

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)
@ -109,20 +109,21 @@ public class ProtoNSEC3
this.next = next;
}
public byte getFlags()
public byte getFlags()
{
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)