summaryrefslogtreecommitdiff
path: root/libjava/java/security/SecureRandom.h
blob: b54318c4406a1cca736166d74ff018048d7face2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// 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__