summaryrefslogtreecommitdiff
path: root/java/security/SecureRandomSpi.java
diff options
context:
space:
mode:
authorBryce McKinlay <mckinlay@redhat.com>2001-09-25 04:30:59 +0000
committerBryce McKinlay <mckinlay@redhat.com>2001-09-25 04:30:59 +0000
commitfa260dfd99f3e978056ac222a473b11e48db7e68 (patch)
tree5911416f78fce57f7df3c9801b164b4dc2c4e890 /java/security/SecureRandomSpi.java
parent986e38631eb362bd3c454a0e432be97084a0ec2f (diff)
downloadclasspath-fa260dfd99f3e978056ac222a473b11e48db7e68.tar.gz
* gnu/java/security/provider/DefaultPolicy.java: New file, from libgcj.
* java/security: Merge from libgcj. These are mostly formatting fixes, with a few fixes and enhancements.
Diffstat (limited to 'java/security/SecureRandomSpi.java')
-rw-r--r--java/security/SecureRandomSpi.java23
1 files changed, 10 insertions, 13 deletions
diff --git a/java/security/SecureRandomSpi.java b/java/security/SecureRandomSpi.java
index fa14abc28..e62144566 100644
--- a/java/security/SecureRandomSpi.java
+++ b/java/security/SecureRandomSpi.java
@@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
-
+
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
@@ -24,43 +24,40 @@ resulting executable to be covered by the GNU General Public License.
This exception does not however invalidate any other reasons why the
executable file might be covered by the GNU General Public License. */
-
package java.security;
import java.io.Serializable;
-//import SecureRandom;
+
/**
SecureRandomSpi is the Service Provider Interface for SecureRandom
providers. It provides an interface for providers to the
SecureRandom engine to write their own pseudo-random number
generator.
- @since JDK 1.2
+ @since JDK 1.2
@author Mark Benvenuto <ivymccough@worldnet.att.net>
-*/
-
+ */
public abstract class SecureRandomSpi implements Serializable
{
-
/**
Default Constructor for SecureRandomSpi
- */
+ */
public SecureRandomSpi()
- {}
+ {
+ }
/**
Updates the seed for SecureRandomSpi but does not reset seed.
It does to this so repeated called never decrease randomness.
- */
+ */
protected abstract void engineSetSeed(byte[] seed);
-
/**
Gets a user specified number of bytes depending on the length
of the array?
@param bytes array to fill with random bytes
- */
+ */
protected abstract void engineNextBytes(byte[] bytes);
/**
@@ -70,6 +67,6 @@ public abstract class SecureRandomSpi implements Serializable
@param numBytes number of random bytes to generate
@return an array full of random bytes
- */
+ */
protected abstract byte[] engineGenerateSeed(int numBytes);
}