org.apache.webbeans.corespi.security
Class ManagedSecurityService
java.lang.Object
org.apache.webbeans.corespi.security.ManagedSecurityService
- All Implemented Interfaces:
- SecurityService
public class ManagedSecurityService
- extends Object
- implements SecurityService
This version of the SecurityService uses the java.lang.SecurityManager
to check low level access to the underlying functions via doPriviliged blocks.
The most secure way is to just copy the source over to your own class and configure
it in openwebbeans.properties. This way you can add whatever security features
you like to use.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ManagedSecurityService
public ManagedSecurityService()
getCurrentPrincipal
public Principal getCurrentPrincipal()
- Specified by:
getCurrentPrincipal in interface SecurityService
doPrivilegedGetDeclaredConstructor
public <T> Constructor<T> doPrivilegedGetDeclaredConstructor(Class<T> clazz,
Class<?>... parameterTypes)
- Specified by:
doPrivilegedGetDeclaredConstructor in interface SecurityService
doPrivilegedGetDeclaredConstructors
public <T> Constructor<?>[] doPrivilegedGetDeclaredConstructors(Class<T> clazz)
- Specified by:
doPrivilegedGetDeclaredConstructors in interface SecurityService
doPrivilegedGetDeclaredMethod
public <T> Method doPrivilegedGetDeclaredMethod(Class<T> clazz,
String name,
Class<?>... parameterTypes)
- Specified by:
doPrivilegedGetDeclaredMethod in interface SecurityService
doPrivilegedGetDeclaredMethods
public <T> Method[] doPrivilegedGetDeclaredMethods(Class<T> clazz)
- Specified by:
doPrivilegedGetDeclaredMethods in interface SecurityService
doPrivilegedGetDeclaredField
public <T> Field doPrivilegedGetDeclaredField(Class<T> clazz,
String name)
- Specified by:
doPrivilegedGetDeclaredField in interface SecurityService
doPrivilegedGetDeclaredFields
public <T> Field[] doPrivilegedGetDeclaredFields(Class<T> clazz)
- Specified by:
doPrivilegedGetDeclaredFields in interface SecurityService
doPrivilegedSetAccessible
public void doPrivilegedSetAccessible(AccessibleObject obj,
boolean flag)
- Specified by:
doPrivilegedSetAccessible in interface SecurityService
doPrivilegedIsAccessible
public boolean doPrivilegedIsAccessible(AccessibleObject obj)
- Specified by:
doPrivilegedIsAccessible in interface SecurityService
doPrivilegedObjectCreate
public <T> T doPrivilegedObjectCreate(Class<T> clazz)
throws PrivilegedActionException,
IllegalAccessException,
InstantiationException
- Specified by:
doPrivilegedObjectCreate in interface SecurityService
- Throws:
PrivilegedActionException
IllegalAccessException
InstantiationException
doPrivilegedSetSystemProperty
public void doPrivilegedSetSystemProperty(String propertyName,
String value)
- Specified by:
doPrivilegedSetSystemProperty in interface SecurityService
doPrivilegedGetSystemProperty
public String doPrivilegedGetSystemProperty(String propertyName,
String defaultValue)
- Specified by:
doPrivilegedGetSystemProperty in interface SecurityService
doPrivilegedGetSystemProperties
public Properties doPrivilegedGetSystemProperties()
- Specified by:
doPrivilegedGetSystemProperties in interface SecurityService
Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.