summaryrefslogtreecommitdiff
path: root/libjava/java/security/Policy.h
blob: 11620954484c75730eef9d17972228c4778af61b (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
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __java_security_Policy__
#define __java_security_Policy__

#pragma interface

#include <java/lang/Object.h>
extern "Java"
{
  namespace java
  {
    namespace security
    {
        class CodeSource;
        class Permission;
        class PermissionCollection;
        class Policy;
        class ProtectionDomain;
    }
  }
}

class java::security::Policy : public ::java::lang::Object
{

public:
  Policy();
  static ::java::security::Policy * getPolicy();
  static void setPolicy(::java::security::Policy *);
private:
  static void setup(::java::security::Policy *);
public: // actually package-private
  static ::java::security::Policy * getCurrentPolicy();
  static jboolean isLoaded();
public:
  virtual ::java::security::PermissionCollection * getPermissions(::java::security::CodeSource *) = 0;
  virtual ::java::security::PermissionCollection * getPermissions(::java::security::ProtectionDomain *);
  virtual jboolean implies(::java::security::ProtectionDomain *, ::java::security::Permission *);
  virtual void refresh() = 0;
private:
  static ::java::security::Policy * currentPolicy;
  ::java::util::Map * __attribute__((aligned(__alignof__( ::java::lang::Object)))) pd2pc;
public:
  static ::java::lang::Class class$;
};

#endif // __java_security_Policy__