Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-10-04 07:16:37 +0000
committerEike Stepper2007-10-04 07:16:37 +0000
commit472ba195981fd5996148ca2b80f1e740fe6a7a4c (patch)
tree5779e93e5e41d004979774e55e3487d4ca4ae0c1 /plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/security/IRandomizer.java
parentbf079c56ef6ecebfdc8bd4196be52d51ddf4566f (diff)
downloadcdo-472ba195981fd5996148ca2b80f1e740fe6a7a4c.tar.gz
cdo-472ba195981fd5996148ca2b80f1e740fe6a7a4c.tar.xz
cdo-472ba195981fd5996148ca2b80f1e740fe6a7a4c.zip
[205027] Implement challenge/response based negotiator
https://bugs.eclipse.org/bugs/show_bug.cgi?id=205027
Diffstat (limited to 'plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/security/IRandomizer.java')
-rw-r--r--plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/security/IRandomizer.java35
1 files changed, 35 insertions, 0 deletions
diff --git a/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/security/IRandomizer.java b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/security/IRandomizer.java
new file mode 100644
index 0000000000..b775d3c21e
--- /dev/null
+++ b/plugins/org.eclipse.net4j.util/src/org/eclipse/net4j/util/security/IRandomizer.java
@@ -0,0 +1,35 @@
+/***************************************************************************
+ * Copyright (c) 2004 - 2007 Eike Stepper, Germany.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ **************************************************************************/
+package org.eclipse.net4j.util.security;
+
+/**
+ * @author Eike Stepper
+ */
+public interface IRandomizer
+{
+ public boolean nextBoolean();
+
+ public double nextDouble();
+
+ public float nextFloat();
+
+ public double nextGaussian();
+
+ public int nextInt();
+
+ public int nextInt(int n);
+
+ public long nextLong();
+
+ public byte[] generateSeed(int numBytes);
+
+ public void nextBytes(byte[] bytes);
+}

Back to the top