Package org.apache.tomcat.util
Interface IntrospectionUtils.SecurePropertySource
-
- All Superinterfaces:
IntrospectionUtils.PropertySource
- All Known Implementing Classes:
Digester.EnvironmentPropertySource,EnvironmentPropertySource,ServiceBindingPropertySource,SystemPropertySource
- Enclosing class:
- IntrospectionUtils
public static interface IntrospectionUtils.SecurePropertySource extends IntrospectionUtils.PropertySource
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetProperty(java.lang.String key, java.lang.ClassLoader classLoader)Obtain a property value, checking that code associated with the provided class loader has permission to access the property.-
Methods inherited from interface org.apache.tomcat.util.IntrospectionUtils.PropertySource
getProperty
-
-
-
-
Method Detail
-
getProperty
java.lang.String getProperty(java.lang.String key, java.lang.ClassLoader classLoader)Obtain a property value, checking that code associated with the provided class loader has permission to access the property. If theclassLoaderisnullor ifclassLoaderdoes not implementPermissionCheckthen the property value will be looked up without a call toPermissionCheck.check(java.security.Permission)- Parameters:
key- The key of the requested propertyclassLoader- The class loader associated with the code that trigger the property lookup- Returns:
- The property value or
nullif it could not be found or ifPermissionCheck.check(java.security.Permission)fails
-
-