summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Drossel2009-01-09 04:18:16 (EST)
committerCarsten Drossel2009-01-09 04:18:16 (EST)
commit3336d46a68d080670b217374576f2f5adbda484e (patch)
treead3283b8b3038ad3ff3520393f593421f0b07152
parent3c29baba448f1f76e47f8ab4e88aab3dc3950b6b (diff)
downloadorg.eclipse.riena-3336d46a68d080670b217374576f2f5adbda484e.zip
org.eclipse.riena-3336d46a68d080670b217374576f2f5adbda484e.tar.gz
org.eclipse.riena-3336d46a68d080670b217374576f2f5adbda484e.tar.bz2
fixed warnings
-rw-r--r--org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/NotAuthorizedFailure.java3
-rw-r--r--org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/SecurityFailure.java2
-rw-r--r--org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/authentication/AuthenticationException.java2
-rw-r--r--org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/authentication/AuthenticationFailure.java2
-rw-r--r--org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/authorization/PermissionClassFactory.java2
-rw-r--r--org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/authorization/internal/PermissionCache.java16
6 files changed, 9 insertions, 18 deletions
diff --git a/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/NotAuthorizedFailure.java b/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/NotAuthorizedFailure.java
index 8e80552..327b2e1 100644
--- a/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/NotAuthorizedFailure.java
+++ b/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/NotAuthorizedFailure.java
@@ -10,9 +10,10 @@
*******************************************************************************/
package org.eclipse.riena.security.common;
-
public class NotAuthorizedFailure extends SecurityFailure {
+ private static final long serialVersionUID = 4187279179455530447L;
+
/**
* @param msg
* @param args
diff --git a/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/SecurityFailure.java b/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/SecurityFailure.java
index db4d9e4..7323402 100644
--- a/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/SecurityFailure.java
+++ b/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/SecurityFailure.java
@@ -18,6 +18,8 @@ import org.eclipse.riena.core.exception.Failure;
*/
public class SecurityFailure extends Failure {
+ private static final long serialVersionUID = -4828670387343650064L;
+
/**
* Creates a new instance of <code>SecurityFailure</code>
*
diff --git a/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/authentication/AuthenticationException.java b/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/authentication/AuthenticationException.java
index 8c586b9..4315590 100644
--- a/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/authentication/AuthenticationException.java
+++ b/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/authentication/AuthenticationException.java
@@ -18,6 +18,8 @@ package org.eclipse.riena.security.common.authentication;
*/
public class AuthenticationException extends Exception {
+ private static final long serialVersionUID = 8380874620101404873L;
+
/**
* constructor.
*/
diff --git a/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/authentication/AuthenticationFailure.java b/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/authentication/AuthenticationFailure.java
index 1242a75..139d82b 100644
--- a/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/authentication/AuthenticationFailure.java
+++ b/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/authentication/AuthenticationFailure.java
@@ -19,6 +19,8 @@ import org.eclipse.riena.security.common.SecurityFailure;
*/
public class AuthenticationFailure extends SecurityFailure {
+ private static final long serialVersionUID = 6621574350342798828L;
+
/**
* Creates a new instance of <code>AuthenticationFailure</code>
*
diff --git a/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/authorization/PermissionClassFactory.java b/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/authorization/PermissionClassFactory.java
index 0388eeb..4fe029a 100644
--- a/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/authorization/PermissionClassFactory.java
+++ b/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/authorization/PermissionClassFactory.java
@@ -19,7 +19,7 @@ public final class PermissionClassFactory {
// utility
}
- public static Class retrieveClass(String permissionClass) throws ClassNotFoundException {
+ public static Class<?> retrieveClass(String permissionClass) throws ClassNotFoundException {
return Class.forName(permissionClass);
}
}
diff --git a/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/authorization/internal/PermissionCache.java b/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/authorization/internal/PermissionCache.java
index d66dd78..285b9bc 100644
--- a/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/authorization/internal/PermissionCache.java
+++ b/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/authorization/internal/PermissionCache.java
@@ -10,25 +10,19 @@
*******************************************************************************/
package org.eclipse.riena.security.common.authorization.internal;
-import java.security.Permission;
import java.security.Permissions;
import java.security.Principal;
-import java.util.Enumeration;
import javax.security.auth.Subject;
-import org.eclipse.equinox.log.Logger;
import org.eclipse.riena.core.cache.GenericObjectCache;
import org.eclipse.riena.core.util.ContainerModel;
-import org.eclipse.riena.internal.security.common.Activator;
import org.eclipse.riena.security.common.authorization.IPermissionCache;
public class PermissionCache implements IPermissionCache {
private final GenericObjectCache<String, Permissions> permCache = new GenericObjectCache<String, Permissions>();
- private static final Logger LOGGER = Activator.getDefault().getLogger(PermissionCache.class);
-
public PermissionCache() {
super();
permCache.setName("PermissionCache"); //$NON-NLS-1$
@@ -51,16 +45,6 @@ public class PermissionCache implements IPermissionCache {
}
- private Permissions addPerms(Permissions allPerms, Permissions perms) {
- Enumeration<Permission> enumPerms = perms.elements();
- while (enumPerms.hasMoreElements()) {
- Permission perm = enumPerms.nextElement();
- allPerms.add(perm);
- }
-
- return allPerms;
- }
-
public void purgePermissions(Subject subject) {
}