summaryrefslogtreecommitdiffstats
path: root/tdehtml/java/netscape/security
diff options
context:
space:
mode:
Diffstat (limited to 'tdehtml/java/netscape/security')
-rw-r--r--tdehtml/java/netscape/security/ForbiddenTargetException.java10
-rw-r--r--tdehtml/java/netscape/security/Principal.java4
-rw-r--r--tdehtml/java/netscape/security/PrivilegeManager.java109
-rw-r--r--tdehtml/java/netscape/security/Target.java4
4 files changed, 127 insertions, 0 deletions
diff --git a/tdehtml/java/netscape/security/ForbiddenTargetException.java b/tdehtml/java/netscape/security/ForbiddenTargetException.java
new file mode 100644
index 000000000..27879d05b
--- /dev/null
+++ b/tdehtml/java/netscape/security/ForbiddenTargetException.java
@@ -0,0 +1,10 @@
+package netscape.security;
+public class ForbiddenTargetException extends RuntimeException {
+ public ForbiddenTargetException()
+ {
+ }
+ public ForbiddenTargetException(String message)
+ {
+ super(message);
+ }
+}
diff --git a/tdehtml/java/netscape/security/Principal.java b/tdehtml/java/netscape/security/Principal.java
new file mode 100644
index 000000000..1f93a8293
--- /dev/null
+++ b/tdehtml/java/netscape/security/Principal.java
@@ -0,0 +1,4 @@
+package netscape.security;
+
+public class Principal {
+} \ No newline at end of file
diff --git a/tdehtml/java/netscape/security/PrivilegeManager.java b/tdehtml/java/netscape/security/PrivilegeManager.java
new file mode 100644
index 000000000..c6555eaa0
--- /dev/null
+++ b/tdehtml/java/netscape/security/PrivilegeManager.java
@@ -0,0 +1,109 @@
+package netscape.security;
+
+public class PrivilegeManager extends Object {
+ public static final int PROPER_SUBSET = 1;
+ public static final int EQUAL = 2;
+ public static final int NO_SUBSET = 3;
+ public static final int SIGNED_APPLET_DBNAME = 4;
+ public static final int TEMP_FILENAME = 5;
+
+ private static PrivilegeManager thePrivilegeManager = null;
+
+ protected PrivilegeManager()
+ {
+ }
+ public void checkPrivilegeEnabled(netscape.security.Target target) throws netscape.security.ForbiddenTargetException
+ {
+ }
+ public void checkPrivilegeEnabled(netscape.security.Target target, Object o) throws netscape.security.ForbiddenTargetException
+ {
+ }
+ public static void enablePrivilege(String privilegeString) throws netscape.security.ForbiddenTargetException
+ {
+ }
+ public void enablePrivilege(netscape.security.Target target) throws netscape.security.ForbiddenTargetException
+ {
+ }
+ public void enablePrivilege(netscape.security.Target target, netscape.security.Principal principal) throws netscape.security.ForbiddenTargetException
+ {
+ }
+ public void enablePrivilege(netscape.security.Target target, netscape.security.Principal principal, Object o) throws netscape.security.ForbiddenTargetException
+ {
+ }
+ public void revertPrivilege(netscape.security.Target target)
+ {
+ }
+ public static void revertPrivilege(String privilegeString)
+ {
+ }
+ public void disablePrivilege(netscape.security.Target target)
+ {
+ }
+ public void disablePrivilege(String privilegeString)
+ {
+ }
+ public static void checkPrivilegeGranted(String privilegeString) throws netscape.security.ForbiddenTargetException
+ {
+ }
+ public void checkPrivilegeGranted(netscape.security.Target target) throws netscape.security.ForbiddenTargetException
+ {
+ }
+ public void checkPrivilegeGranted(netscape.security.Target target, Object o) throws netscape.security.ForbiddenTargetException
+ {
+ }
+ public void checkPrivilegeGranted(netscape.security.Target target, netscape.security.Principal principal, Object o) throws netscape.security.ForbiddenTargetException
+ {
+ }
+ public boolean isCalledByPrincipal(netscape.security.Principal principal, int dontknow)
+ {
+ return false;
+ }
+ public boolean isCalledByPrincipal(netscape.security.Principal principal)
+ {
+ return false;
+ }
+ public static netscape.security.Principal getSystemPrincipal()
+ {
+ return null;
+ }
+ public static netscape.security.PrivilegeManager getPrivilegeManager()
+ {
+ if (thePrivilegeManager == null) {
+ thePrivilegeManager = new PrivilegeManager();
+ }
+ return thePrivilegeManager;
+ }
+ public boolean hasPrincipal(Class cl, netscape.security.Principal principal)
+ {
+ return true;
+ }
+ public int comparePrincipalArray(netscape.security.Principal[] a, netscape.security.Principal[] b)
+ {
+ return 1;
+ }
+ public boolean checkMatchPrincipal(Class cl, int dontknow)
+ {
+ return true;
+ }
+ public boolean checkMatchPrincipal(netscape.security.Principal principal, int dontknow)
+ {
+ return true;
+ }
+ public boolean checkMatchPrincipal(Class cl)
+ {
+ return true;
+ }
+ public boolean checkMatchPrincipalAlways()
+ {
+ return true;
+ }
+ public netscape.security.Principal[] getClassPrincipalsFromStack(int n)
+ {
+ return null;
+ }
+ /*
+ public netscape.security.PrivilegeTable getPrivilegeTableFromStack();
+ {
+ }
+ */
+}
diff --git a/tdehtml/java/netscape/security/Target.java b/tdehtml/java/netscape/security/Target.java
new file mode 100644
index 000000000..8b50040b5
--- /dev/null
+++ b/tdehtml/java/netscape/security/Target.java
@@ -0,0 +1,4 @@
+package netscape.security;
+
+public class Target {
+} \ No newline at end of file