public class SecureActions extends PrivilegedActions
Constructor and Description |
---|
SecureActions() |
Modifier and Type | Method and Description |
---|---|
static PrivilegedAction<javax.validation.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.
|
getAnnotationValue, getClass, getClassLoader, getLineSeparator, getPathSeparator, getProperty
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<javax.validation.ValidatorFactory> doPrivBuildValidatorFactory(ConfigurationImpl config)
Copyright © 2010-2015 The Apache Software Foundation. All Rights Reserved.