gcc/libjava/java/security/SecureRandom.h
Andrew John Hughes dc6a0b2d94 Sync libgcj with GNU Classpath 0.98.
2009-02-13  Andrew John Hughes  <ahughes@redhat.com>

	Import GNU Classpath (classpath-0_98-release).

	* Makefile.am: Add natVMSecureRandom.cc.
	* Makefile.in: Regenerated.
	* classpath/ChangeLog,
	* classpath/Makefile.am: Merged.
	* classpath/Makefile.in: Regenerated.
	* classpath/NEWS: Merged.
	* classpath/config.guess,
	* classpath/config.sub,
	* classpath/configure: Regenerated.
	* classpath/configure.ac: Merged.
	* classpath/gnu/java/awt/peer/gtk/CairoGraphics2D.java,
	* classpath/gnu/java/security/jce/prng/SecureRandomAdapter.java,
	* classpath/gnu/javax/crypto/jce/prng/ARCFourRandomSpi.java,
	* classpath/gnu/javax/crypto/jce/prng/CSPRNGSpi.java,
	* classpath/gnu/javax/crypto/jce/prng/FortunaImpl.java,
	* classpath/gnu/javax/crypto/jce/prng/ICMRandomSpi.java,
	* classpath/gnu/javax/crypto/jce/prng/UMacRandomSpi.java,
	* classpath/gnu/javax/crypto/prng/ICMGenerator.java,
	* classpath/gnu/xml/stream/XMLParser.java,
	* classpath/java/security/SecureRandom.java,
	* classpath/native/jni/native-lib/cpproc.c,
	* classpath/native/plugin/gcjwebplugin.cc,
	* classpath/tools/gnu/classpath/tools/gjdoc/Main.java: Merged.
	* configure: Regenerated.
	* configure.ac: Add symlink for natVMSecureRandomPosix.cc to natVMSecureRandom.cc
	* gnu/classpath/Configuration.java: Change version to 0.98.
	* gnu/java/security/jce/prng/SecureRandomAdapter.h: Regenerated.
	* gnu/java/security/jce/prng/VMSecureRandom.h: Generated.
	* gnu/java/security/jce/prng/VMSecureRandom.java: Added native implementation.
	* gnu/java/security/jce/prng/natVMSecureRandomPosix.cc: Wrapper around /dev/random.
	* gnu/javax/crypto/jce/prng/CSPRNGSpi.h,
	* gnu/javax/crypto/jce/prng/FortunaImpl.h,
	* java/security/SecureRandom.h: Regenerated.
	* java/security/VMSecureRandom$Spinner.h,
	* java/security/VMSecureRandom.h,
	* java/security/VMSecureRandom.java: Removed.
	* sources.am: Move VMSecureRandom to gnu.java.security.jce.prng.

From-SVN: r144434
2009-02-25 21:40:28 +00:00

67 lines
1.9 KiB
C++

// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
#ifndef __java_security_SecureRandom__
#define __java_security_SecureRandom__
#pragma interface
#include <java/util/Random.h>
#include <gcj/array.h>
extern "Java"
{
namespace java
{
namespace security
{
class Provider;
class SecureRandom;
class SecureRandomSpi;
}
}
}
class java::security::SecureRandom : public ::java::util::Random
{
public:
SecureRandom();
SecureRandom(JArray< jbyte > *);
public: // actually protected
SecureRandom(::java::security::SecureRandomSpi *, ::java::security::Provider *);
private:
SecureRandom(::java::security::SecureRandomSpi *, ::java::security::Provider *, ::java::lang::String *);
public:
static ::java::security::SecureRandom * getInstance(::java::lang::String *);
static ::java::security::SecureRandom * getInstance(::java::lang::String *, ::java::lang::String *);
static ::java::security::SecureRandom * getInstance(::java::lang::String *, ::java::security::Provider *);
virtual ::java::security::Provider * getProvider();
virtual ::java::lang::String * getAlgorithm();
virtual void setSeed(JArray< jbyte > *);
virtual void setSeed(jlong);
virtual void nextBytes(JArray< jbyte > *);
public: // actually protected
virtual jint next(jint);
public:
static JArray< jbyte > * getSeed(jint);
virtual JArray< jbyte > * generateSeed(jint);
private:
static ::java::lang::String * SECURE_RANDOM;
static const jlong serialVersionUID = 4940670005562187LL;
public: // actually package-private
jlong __attribute__((aligned(__alignof__( ::java::util::Random)))) counter;
::java::security::Provider * provider;
JArray< jbyte > * randomBytes;
jint randomBytesUsed;
::java::security::SecureRandomSpi * secureRandomSpi;
JArray< jbyte > * state;
private:
::java::lang::String * algorithm;
jboolean isSeeded;
public:
static ::java::lang::Class class$;
};
#endif // __java_security_SecureRandom__