From 09d21a1d67abe1a8aa844c152306a9ff1438c53d Mon Sep 17 00:00:00 2001 From: David Blacka Date: Mon, 2 Feb 2009 04:58:18 +0000 Subject: [PATCH] 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 --- .../dnssec/security/ProtoNSEC3.java | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/com/verisignlabs/dnssec/security/ProtoNSEC3.java b/src/com/verisignlabs/dnssec/security/ProtoNSEC3.java index 1b84c6e..103e4f3 100644 --- a/src/com/verisignlabs/dnssec/security/ProtoNSEC3.java +++ b/src/com/verisignlabs/dnssec/security/ProtoNSEC3.java @@ -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)