org.apache.webbeans.corespi.security
Class SimpleSecurityService
java.lang.Object
org.apache.webbeans.corespi.security.SimpleSecurityService
- All Implemented Interfaces:
- SecurityService
public class SimpleSecurityService
- extends Object
- implements SecurityService
A version of the SecurityService which directly invokes
the underlying Class methods instead of using a SecurityManager.
This version is activated by default and intended for JavaSE and
non EE-Server use.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleSecurityService
public SimpleSecurityService()
getCurrentPrincipal
public Principal getCurrentPrincipal()
- Specified by:
getCurrentPrincipal in interface SecurityService
- Returns:
- always
null in the default implementation
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-2012 The Apache Software Foundation. All Rights Reserved.