A C D E F G M N R S T V

A

addPermissions(PermissionCollection, PermissionCollection) - Static method in class net.drijf.javaone.DelegatingPolicy
Add permissions to a permission collection.
ALL - Static variable in class net.drijf.javaone.RoleImpl
The role that allows anything

C

checkAccess(ThreadGroup) - Method in class net.drijf.javaone.StrictSecurityManager
Check access to the ThreadGroup.
checkExit(int) - Method in class net.drijf.javaone.StrictSecurityManager
Prevent access to System.exit(), even if AllPermission has been granted.
checkPermission(Permission) - Method in class net.drijf.javaone.StrictSecurityManager
Check if setting the security manager is allowed.
checkTrusted(String) - Method in class net.drijf.javaone.StrictSecurityManager
Check is we trust the class with the given name.
ClassLoadPermission - class net.drijf.javaone.ClassLoadPermission.
This class specifies the permission to load a class into the VM.
ClassLoadPermission(String) - Constructor for class net.drijf.javaone.ClassLoadPermission
Construct a new instance allowing permission to load classes specified by the argument.
ClassLoadPermission(String, String) - Constructor for class net.drijf.javaone.ClassLoadPermission
Construct a new instance allowing permission to load classes specified by the argument.

D

DelegatingCL - class net.drijf.javaone.DelegatingCL.
Implements a class loader that uses the delegating policy to assign permissions.
DelegatingCL(URL[], ClassLoader, Policy) - Constructor for class net.drijf.javaone.DelegatingCL
Construct a new delegating URL classloader, given a policy.
DelegatingPolicy - class net.drijf.javaone.DelegatingPolicy.
This class implements an authorization policy that enables granting of authorizition based on the CA of the associated certificates and based on Roles.
DelegatingPolicy(File, char[], RoleMapping) - Constructor for class net.drijf.javaone.DelegatingPolicy
Construct a new DelegatingPolicy.

E

ENTER - Static variable in class net.drijf.javaone.RoleImpl
A role that allows clas loading of a specific class

F

findClass(String) - Method in class net.drijf.javaone.DelegatingCL
Find a class, with an additional check on ClassLoadPermission.

G

getName() - Method in interface net.drijf.javaone.Role
Return the name of this role.
getName() - Method in class net.drijf.javaone.RoleImpl
Return the name of this role.
getPermissions() - Method in interface net.drijf.javaone.Role
Return the permission associated with this role.
getPermissions() - Method in class net.drijf.javaone.RoleImpl
Return the permissions assocated with this role.
getPermissions(Certificate[]) - Method in class net.drijf.javaone.DelegatingPolicy
Return a permission collection associated with a list of certificates.
getPermissions(CodeSource) - Method in class net.drijf.javaone.DelegatingCL
Return the permission associated with a codesource according to the policy associated with this classloader.
getPermissions(CodeSource) - Method in class net.drijf.javaone.DelegatingPolicy
Get the permission collection associated with a code source.
getPermissions(String) - Method in class net.drijf.javaone.DelegatingPolicy
Return the permissions associated with a role.
getRole(String) - Method in interface net.drijf.javaone.RoleMapping
Return the role associated with a name.
getRole(String) - Method in class net.drijf.javaone.RoleMappingImpl
Return the role associated with a name.

M

main(String[]) - Static method in class net.drijf.javaone.TestMain
Do some tests.

N

net.drijf.javaone - package net.drijf.javaone
This package contains the sample code I made for my JavaOne 2002 presentation "Going Beyond Standard Security for the JavaTM Platform".
NOTHING - Static variable in class net.drijf.javaone.RoleImpl
The role that disallows anything.

R

READER - Static variable in class net.drijf.javaone.RoleImpl
A role that allows classloading and reading of files,
refresh() - Method in class net.drijf.javaone.DelegatingPolicy
Refreshes the policy definition.
Role - interface net.drijf.javaone.Role.
This interface defines how to retrieve the collection of permissions associated with a role.
RoleImpl - class net.drijf.javaone.RoleImpl.
This class implements a simple role assignment.
RoleImpl(String, Permission[]) - Constructor for class net.drijf.javaone.RoleImpl
Construct a new role.
RoleMapping - interface net.drijf.javaone.RoleMapping.
This interface defines how to map a name to a role.
RoleMappingImpl - class net.drijf.javaone.RoleMappingImpl.
This class implements a basic role mapping, using a memory based table.
RoleMappingImpl(Map) - Constructor for class net.drijf.javaone.RoleMappingImpl
Construct a new role mapping, based on a map.

S

splitCertificateArray(Certificate[]) - Static method in class net.drijf.javaone.DelegatingPolicy
Split up a certificate array returned by CodeSource.getCertficates into seperate chains.
StrictSecurityManager - class net.drijf.javaone.StrictSecurityManager.
This class implements a more strict Security manager than the standard SecurityManager.
StrictSecurityManager() - Constructor for class net.drijf.javaone.StrictSecurityManager
 

T

TestInterface - interface net.drijf.javaone.TestInterface.
This interface defines some methods that test code should implement.
TestMain - class net.drijf.javaone.TestMain.
Demonstrate the class loading and delegation mechanism by loading a test class from a (signed) jar and executing the test methods.
TestMain() - Constructor for class net.drijf.javaone.TestMain
 
tryToCreateThread() - Method in interface net.drijf.javaone.TestInterface
Try to create a thread
tryToExitVM() - Method in interface net.drijf.javaone.TestInterface
Try to exit the VM
tryToReadFile(String) - Method in interface net.drijf.javaone.TestInterface
Try to read a file

V

verifyChain(List) - Method in class net.drijf.javaone.DelegatingPolicy
Do a quite strict verification of a chain of certificates.

A C D E F G M N R S T V