|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.bval.util.PrivilegedActions
org.apache.bval.jsr303.util.SecureActions
public class SecureActions
Description: utility methods to perform actions with AccessController or without.
| Constructor Summary | |
|---|---|
SecureActions()
|
|
| Method Summary | |
|---|---|
static PrivilegedAction<ValidatorFactory> |
doPrivBuildValidatorFactory(ConfigurationImpl config)
Create a privileged action for ConfigurationImpl.buildValidatorFactory. |
static PrivilegedAction<ClassLoader> |
getContextClassLoader()
Create a privileged action to get the context classloader of the current thread. |
static PrivilegedAction<Field> |
getDeclaredField(Class<?> clazz,
String fieldName)
Create a privileged action to get the named field declared by the specified class. |
static PrivilegedAction<Field[]> |
getDeclaredFields(Class<?> clazz)
Create a privileged action to get all fields declared by the specified class. |
static PrivilegedAction<Method[]> |
getDeclaredMethods(Class<?> clazz)
Create a privileged action to get all methods declared by the specified class. |
static PrivilegedAction<Method> |
getPublicMethod(Class<?> clazz,
String methodName)
Create a privileged action to get the named method declared by the specified class or by one of its ancestors. |
| Methods inherited from class org.apache.bval.util.PrivilegedActions |
|---|
getAnnotationValue, getClass, getClassLoader, getLineSeparator, getPathSeparator, getProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SecureActions()
| Method Detail |
|---|
public static PrivilegedAction<ClassLoader> getContextClassLoader()
Thread.getContextClassLoader()
public static PrivilegedAction<Field> getDeclaredField(Class<?> clazz,
String fieldName)
null if there is no such field.
public static PrivilegedAction<Field[]> getDeclaredFields(Class<?> clazz)
public static PrivilegedAction<Method[]> getDeclaredMethods(Class<?> clazz)
public static PrivilegedAction<Method> getPublicMethod(Class<?> clazz,
String methodName)
null if there is no such method.
public static PrivilegedAction<ValidatorFactory> doPrivBuildValidatorFactory(ConfigurationImpl config)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||