Arbeitsstand Anfang Februar
git-svn-id: https://brutex.net/svn/xservices/trunk@104 e7e49efb-446e-492e-b9ec-fcafc1997a86tag-20130205r
parent
8b1f12853b
commit
e6ebb2d6a1
|
@ -0,0 +1,43 @@
|
||||||
|
<<<<<<< .mine
|
||||||
|
package net.brutex.xservices.security;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
public abstract interface Identity
|
||||||
|
{
|
||||||
|
public abstract UUID getUUID();
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Location: C:\Users\brosenberger\Documents\My Box Files\XBridgeNG-download\XServices-20130131 - Kopie\WEB-INF\classes\net.zip
|
||||||
|
* Qualified Name: net.brutex.xservices.security.Identity
|
||||||
|
* JD-Core Version: 0.6.2
|
||||||
|
*/=======
|
||||||
|
/*
|
||||||
|
* 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();
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
>>>>>>> .r97
|
|
@ -0,0 +1,11 @@
|
||||||
|
package net.brutex.xservices.security;
|
||||||
|
|
||||||
|
public abstract interface SecurityManager
|
||||||
|
{
|
||||||
|
public abstract boolean canExecute(String paramString, Identity paramIdentity);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Location: C:\Users\brosenberger\Documents\My Box Files\XBridgeNG-download\XServices-20130131 - Kopie\WEB-INF\classes\net.zip
|
||||||
|
* Qualified Name: net.brutex.xservices.security.SecurityManager
|
||||||
|
* JD-Core Version: 0.6.2
|
||||||
|
*/
|
|
@ -0,0 +1,18 @@
|
||||||
|
/* */ package net.brutex.xservices.security;
|
||||||
|
/* */
|
||||||
|
/* */ import java.io.PrintStream;
|
||||||
|
/* */
|
||||||
|
/* */ public class StandardSecurityManager
|
||||||
|
/* */ implements SecurityManager
|
||||||
|
/* */ {
|
||||||
|
/* */ public boolean canExecute(String method, Identity identity)
|
||||||
|
/* */ {
|
||||||
|
/* 9 */ System.out.println("User '" + identity.getUUID() + "' accesses '" + method + "'");
|
||||||
|
/* 10 */ return true;
|
||||||
|
/* */ }
|
||||||
|
/* */ }
|
||||||
|
|
||||||
|
/* Location: C:\Users\brosenberger\Documents\My Box Files\XBridgeNG-download\XServices-20130131 - Kopie\WEB-INF\classes\net.zip
|
||||||
|
* Qualified Name: net.brutex.xservices.security.StandardSecurityManager
|
||||||
|
* JD-Core Version: 0.6.2
|
||||||
|
*/
|
|
@ -0,0 +1,17 @@
|
||||||
|
/* */ package net.brutex.xservices.security;
|
||||||
|
/* */
|
||||||
|
/* */ import java.util.UUID;
|
||||||
|
/* */
|
||||||
|
/* */ public class UserIdentity
|
||||||
|
/* */ implements Identity
|
||||||
|
/* */ {
|
||||||
|
/* */ public UUID getUUID()
|
||||||
|
/* */ {
|
||||||
|
/* 9 */ return UUID.randomUUID();
|
||||||
|
/* */ }
|
||||||
|
/* */ }
|
||||||
|
|
||||||
|
/* Location: C:\Users\brosenberger\Documents\My Box Files\XBridgeNG-download\XServices-20130131 - Kopie\WEB-INF\classes\net.zip
|
||||||
|
* Qualified Name: net.brutex.xservices.security.UserIdentity
|
||||||
|
* JD-Core Version: 0.6.2
|
||||||
|
*/
|
Loading…
Reference in New Issue