A specialization of
Properties that stores its contents
in the same order and with the same formatting as was used to read
the contents from an input stream.
Helper class to obtain the Privilege(Exception)Action object to perform
Java 2 doPrivilege security sensitive function call in the following
methods:
AccessibleObject.setAccessible
Class.forName
Class.getClassLoader
Class.getDeclaredField
Class.getDeclaredFields
Class.getDeclaredMethod
Class.getDeclaredMethods
Class.getResource
Class.newInstance
ClassLoader.getParent
ClassLoader.getResource
ClassLoader.getResources
ClassLoader.getSystemClassLoader
File.delete
File.exists
File.getAbsoluteFile
File.getAbsolutePath
File.getCanonicalPath
File.listFiles
File.length
File.isDirectory
File.mkdirs
File.renameTo
File.toURL
FileInputStream new
FileOutputStream new
System.getProperties
InetAddress.getByName
MultiClassLoader new
ServerSocket new
Socket new
Socket.accept
System.getProperty
Thread.getContextClassLoader
Thread new
TemporaryClassLoader new
URL.openStream
URLConnection.getContent
ZipFile new
serp.bytecode.Code new
serp.bytecode.BCClassLoader new
serp.bytecode.BCClass.write
serp.bytecode.BCClass.getFields
serp.bytecode.FieldInstruction.getField
serp.bytecode.Project.loadClass
If these methods are used, the following sample usage patterns should be
followed to ensure proper privilege is granted:
1) No security risk method call.
A specialization of the
Properties map type with the added
abilities to read application options from the command line and to
use bean patterns to set an object's properties via command-line the
stored mappings.
A typical use pattern for this class is to construct a new instance
in the main method, then call
Options.setFromCmdLine with the
given args.