From 2f49fc019bd13cf5da35a86fe18c6c2aa5705c48 Mon Sep 17 00:00:00 2001 From: Brian Rosenberger Date: Tue, 5 Feb 2013 13:48:08 +0000 Subject: [PATCH] Arbeitsstand Anfang Februar git-svn-id: https://brutex.net/svn/xservices/trunk@98 e7e49efb-446e-492e-b9ec-fcafc1997a86 --- .../brutex/xservices/security/Identity.java | 28 ------------------- .../xservices/security/SecurityManager.java | 25 ----------------- .../security/StandardSecurityManager.java | 13 --------- .../xservices/security/UserIdentity.java | 12 -------- 4 files changed, 78 deletions(-) delete mode 100644 src/java/net/brutex/xservices/security/Identity.java delete mode 100644 src/java/net/brutex/xservices/security/SecurityManager.java delete mode 100644 src/java/net/brutex/xservices/security/StandardSecurityManager.java delete mode 100644 src/java/net/brutex/xservices/security/UserIdentity.java diff --git a/src/java/net/brutex/xservices/security/Identity.java b/src/java/net/brutex/xservices/security/Identity.java deleted file mode 100644 index 2afa558..0000000 --- a/src/java/net/brutex/xservices/security/Identity.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright 2012 Brian Rosenberger (Brutex Network) - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package net.brutex.xservices.security; - -import java.util.UUID; - - - -public interface Identity { - - public UUID getUUID(); - - -} diff --git a/src/java/net/brutex/xservices/security/SecurityManager.java b/src/java/net/brutex/xservices/security/SecurityManager.java deleted file mode 100644 index ae67369..0000000 --- a/src/java/net/brutex/xservices/security/SecurityManager.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright 2012 Brian Rosenberger (Brutex Network) - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package net.brutex.xservices.security; - -import java.lang.reflect.Method; - -public interface SecurityManager { - - public boolean canExecute(String method, Identity identity); - -} diff --git a/src/java/net/brutex/xservices/security/StandardSecurityManager.java b/src/java/net/brutex/xservices/security/StandardSecurityManager.java deleted file mode 100644 index b52c911..0000000 --- a/src/java/net/brutex/xservices/security/StandardSecurityManager.java +++ /dev/null @@ -1,13 +0,0 @@ -package net.brutex.xservices.security; - -import java.lang.reflect.Method; - -public class StandardSecurityManager implements SecurityManager { - - @Override - public boolean canExecute(String method, Identity identity) { - System.out.println("User '"+identity.getUUID()+"' accesses '"+method+"'"); - return true; - } - -} diff --git a/src/java/net/brutex/xservices/security/UserIdentity.java b/src/java/net/brutex/xservices/security/UserIdentity.java deleted file mode 100644 index 742768c..0000000 --- a/src/java/net/brutex/xservices/security/UserIdentity.java +++ /dev/null @@ -1,12 +0,0 @@ -package net.brutex.xservices.security; - -import java.util.UUID; - -public class UserIdentity implements Identity { - - @Override - public UUID getUUID() { - return UUID.randomUUID(); - } - -}