diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-01-09 19:58:05 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-01-09 19:58:05 +0000 |
commit | 65bf3316cf384588453604be6b4f0ed3751a8b0f (patch) | |
tree | 996a5f57d4a68c53473382e45cb22f574cb3e4db /libjava/java/security/Policy.h | |
parent | 8fc56618a84446beccd45b80381cdfe0e94050df (diff) | |
download | gcc-65bf3316cf384588453604be6b4f0ed3751a8b0f.tar.gz |
Merged gcj-eclipse branch to trunk.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120621 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/security/Policy.h')
-rw-r--r-- | libjava/java/security/Policy.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/libjava/java/security/Policy.h b/libjava/java/security/Policy.h new file mode 100644 index 00000000000..11620954484 --- /dev/null +++ b/libjava/java/security/Policy.h @@ -0,0 +1,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__ |