FileDocCategorySizeDatePackage
Support_IOTestSecurityManager.javaAPI DocAndroid 1.5 API1609Wed May 06 22:41:06 BST 2009tests.support

Support_IOTestSecurityManager

public class Support_IOTestSecurityManager extends SecurityManager

Fields Summary
private ArrayList
permissions
Constructors Summary
public Support_IOTestSecurityManager()

        permissions = new ArrayList<Permission>(2);
        permissions.add(new SerializablePermission("enableSubclassImplementation"));
        permissions.add(new SerializablePermission("enableSubstitution"));
    
Methods Summary
public voidcheckPermission(java.security.Permission p)

        for (Iterator<Permission> i = permissions.iterator(); i.hasNext(); ) {
            if (i.next().equals(p)) {
                throw new SecurityException();
            }
        }