public class ManagedSecurityService extends Object implements SecurityService
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.| Modifier and Type | Class and Description |
|---|---|
protected static class |
ManagedSecurityService.PrivilegedActionForClass |
protected static class |
ManagedSecurityService.PrivilegedActionForIsAccessible |
protected static class |
ManagedSecurityService.PrivilegedActionForObjectCreation |
protected static class |
ManagedSecurityService.PrivilegedActionForProperty |
protected static class |
ManagedSecurityService.PrivilegedActionForSetAccessible |
protected static class |
ManagedSecurityService.PrivilegedActionForSetProperty |
protected static class |
ManagedSecurityService.PrivilegedActionGetSystemProperties |
| Constructor and Description |
|---|
ManagedSecurityService() |
| Modifier and Type | Method and Description |
|---|---|
<T> Constructor<T> |
doPrivilegedGetConstructor(Class<T> clazz,
Class<?>... parameterTypes) |
<T> Constructor<T> |
doPrivilegedGetDeclaredConstructor(Class<T> clazz,
Class<?>... parameterTypes) |
<T> Constructor<?>[] |
doPrivilegedGetDeclaredConstructors(Class<T> clazz) |
<T> Field |
doPrivilegedGetDeclaredField(Class<T> clazz,
String name) |
<T> Field[] |
doPrivilegedGetDeclaredFields(Class<T> clazz) |
<T> Method |
doPrivilegedGetDeclaredMethod(Class<T> clazz,
String name,
Class<?>... parameterTypes) |
<T> Method[] |
doPrivilegedGetDeclaredMethods(Class<T> clazz) |
Properties |
doPrivilegedGetSystemProperties() |
String |
doPrivilegedGetSystemProperty(String propertyName,
String defaultValue) |
boolean |
doPrivilegedIsAccessible(AccessibleObject obj) |
<T> T |
doPrivilegedObjectCreate(Class<T> clazz) |
void |
doPrivilegedSetAccessible(AccessibleObject obj,
boolean flag) |
void |
doPrivilegedSetSystemProperty(String propertyName,
String value) |
Principal |
getCurrentPrincipal() |
public Principal getCurrentPrincipal()
getCurrentPrincipal in interface SecurityServicepublic <T> Constructor<T> doPrivilegedGetDeclaredConstructor(Class<T> clazz, Class<?>... parameterTypes)
doPrivilegedGetDeclaredConstructor in interface SecurityServicepublic <T> Constructor<T> doPrivilegedGetConstructor(Class<T> clazz, Class<?>... parameterTypes)
doPrivilegedGetConstructor in interface SecurityServicepublic <T> Constructor<?>[] doPrivilegedGetDeclaredConstructors(Class<T> clazz)
doPrivilegedGetDeclaredConstructors in interface SecurityServicepublic <T> Method doPrivilegedGetDeclaredMethod(Class<T> clazz, String name, Class<?>... parameterTypes)
doPrivilegedGetDeclaredMethod in interface SecurityServicepublic <T> Method[] doPrivilegedGetDeclaredMethods(Class<T> clazz)
doPrivilegedGetDeclaredMethods in interface SecurityServicepublic <T> Field doPrivilegedGetDeclaredField(Class<T> clazz, String name)
doPrivilegedGetDeclaredField in interface SecurityServicepublic <T> Field[] doPrivilegedGetDeclaredFields(Class<T> clazz)
doPrivilegedGetDeclaredFields in interface SecurityServicepublic void doPrivilegedSetAccessible(AccessibleObject obj, boolean flag)
doPrivilegedSetAccessible in interface SecurityServicepublic boolean doPrivilegedIsAccessible(AccessibleObject obj)
doPrivilegedIsAccessible in interface SecurityServicepublic <T> T doPrivilegedObjectCreate(Class<T> clazz) throws PrivilegedActionException, IllegalAccessException, InstantiationException
doPrivilegedObjectCreate in interface SecurityServicePrivilegedActionExceptionIllegalAccessExceptionInstantiationExceptionpublic void doPrivilegedSetSystemProperty(String propertyName, String value)
doPrivilegedSetSystemProperty in interface SecurityServicepublic String doPrivilegedGetSystemProperty(String propertyName, String defaultValue)
doPrivilegedGetSystemProperty in interface SecurityServicepublic Properties doPrivilegedGetSystemProperties()
doPrivilegedGetSystemProperties in interface SecurityServiceCopyright © 2008-2013 The Apache Software Foundation. All Rights Reserved.