aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse/jgit/transport/PushCertificate.java
diff options
context:
space:
mode:
authorDave Borowitz <dborowitz@google.com>2015-06-15 10:14:59 -0400
committerDave Borowitz <dborowitz@google.com>2015-06-15 10:32:09 -0400
commitec37daeb7f593d7184d1821f06386feadc66464a (patch)
tree1a7581e9061925adacf69444e88cedf1cd818ca3 /org.eclipse.jgit/src/org/eclipse/jgit/transport/PushCertificate.java
parentd399a56e66443dc19ea945b7c21f98236c9f0565 (diff)
downloadjgit-ec37daeb7f593d7184d1821f06386feadc66464a.tar.gz
jgit-ec37daeb7f593d7184d1821f06386feadc66464a.zip
Add tests for HMACSHA1NonceGenerator
Correct documentation of NonceStatus.OK/SLOP to match the implemented behavior. Change-Id: Id5ec1945eab76db6d2e4b592cb25907ea3d835cd
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/transport/PushCertificate.java')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/transport/PushCertificate.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/PushCertificate.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/PushCertificate.java
index 2eda2b7138..18a1197912 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/PushCertificate.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/PushCertificate.java
@@ -71,9 +71,12 @@ public class PushCertificate {
BAD,
/** Nonce is required, but was not sent by client. */
MISSING,
- /** Received nonce is valid. */
+ /**
+ * Received nonce matches sent nonce, or is valid within the accepted slop
+ * window.
+ */
OK,
- /** Received nonce is valid and within the accepted slop window. */
+ /** Received nonce is valid, but outside the accepted slop window. */
SLOP
}