| org.apache.harmony.auth.internal.SecurityTest
All known Subclasses: org.apache.harmony.auth.tests.javax.security.auth.SubjectDomainCombinerTest,
SecurityTest | public class SecurityTest extends TestCase (Code) | | Custom security manager
Note: this class is subject to change,
please notify the author before using it
|
Inner Class :public static class IteratorTest extends SecurityTest | |
Inner Class :public static class ReadOnlyIteratorTest extends IteratorTest | |
Inner Class :public static class SecureIteratorTest extends IteratorTest | |
Inner Class :public static class SetTest extends SecurityTest | |
Inner Class :public static class UnsupportedNullTest extends SecurityTest | |
Inner Class :public static class IneligibleElementTest extends SecurityTest | |
Inner Class :public static class ReadOnlySetTest extends SetTest | |
Inner Class :public static class SecureSetTest extends SetTest | |
Inner Class :public static class ObjectTest extends SecurityTest | |
Inner Class :public static class SubjectSetObjectTest extends ObjectTest | |
Field Summary | |
public static boolean | testing |
testing | public static boolean testing(Code) | | |
SecurityTest | public SecurityTest()(Code) | | |
assertEquals | final public void assertEquals(AccessControlException exception, Class<? extends Permission> permission)(Code) | | Verifies that exception has correct associated permission class
Parameters: exception - - to be verified Parameters: permission - - permission class for comparing |
denyMode | public void denyMode()(Code) | | Sets deny mode
all permissions are granted, test can only deny specific permission
|
denyPermission | public void denyPermission(Permission permission)(Code) | | Denies specified permission
It is used only in deny mode
|
grantMode | public void grantMode()(Code) | | Sets grant mode
all permissions are denied, test can only grant specific permission
|
grantPermission | public void grantPermission(Permission permission)(Code) | | Grants specified permission
It is used only in grant mode
|
|
|