| javax.security.auth.SubjectTest
SubjectTest | public class SubjectTest extends SecurityTest (Code) | | Tests Subject and its inner classes implementation.
|
Inner Class :public static class PermissionTest extends SecurityTest | |
Inner Class :public static class MyClass2 implements Principal | |
Inner Class :public static class MyObject implements Serializable | |
Inner Class :public static class PrincipalTestSuite extends TestSuite | |
Inner Class :public static class PrivateCredentialTestSuite extends TestSuite | |
Inner Class :public static class PublicCredentialTestSuite extends TestSuite | |
Inner Class :public static class PrincipalClassTestSuite extends TestSuite | |
Inner Class :public static class PrivateCredentialClassTestSuite extends TestSuite | |
Inner Class :public static class PublicCredentialClassTestSuite extends TestSuite | |
SubjectTest | public SubjectTest()(Code) | | |
testACE_doAsPrivileged_A | final public void testACE_doAsPrivileged_A() throws Exception(Code) | | Tests SecurityException for Subject.doAsPrivileged(
Subject,PrivilegedAction,AccessControlContext)
|
testACE_doAsPrivileged_EA | final public void testACE_doAsPrivileged_EA() throws Exception(Code) | | Tests SecurityException for Subject.doAsPrivileged(
Subject,PrivilegedExceptionAction,AccessControlContext)
|
testACE_doAs_A | final public void testACE_doAs_A() throws Exception(Code) | | Tests SecurityException for Subject.doAs(Subject,PrivilegedAction)
|
testACE_doAs_EA | final public void testACE_doAs_EA() throws Exception(Code) | | Tests SecurityException for Subject.doAs(Subject,PrivilegedExceptionAction)
|
testACE_getSubject | final public void testACE_getSubject()(Code) | | Tests SecurityException for Subject.getSubject()
|
testACE_setReadOnly | final public void testACE_setReadOnly()(Code) | | Tests SecurityException for Subject.setReadOnly()
|
testDoAs | final public void testDoAs()(Code) | | Tests Subject.doAs(Subject, PrivilegedAction)
|
testDoAsPrivileged | final public void testDoAsPrivileged()(Code) | | Tests Subject.doAsPrivileged(Subject, PrivilegedAction, ACContext)
|
testDoAsPrivileged_PEA | final public void testDoAsPrivileged_PEA() throws Exception(Code) | | Tests Subject.doAsPrivileged(Subject, PEAction, ACContext)
|
testDoAs_PEA | final public void testDoAs_PEA() throws Exception(Code) | | Tests Subject.doAs(Subject, PrivilegedExceptionAction)
|
testDoAs_newACC | final public void testDoAs_newACC() throws Exception(Code) | | Tests Subject.doAs* methods for creating new context
Expected: no SecurityException
|
testEquals | final public void testEquals()(Code) | | Tests Subject.equals() method
|
testEquals_NoPCP | final public void testEquals_NoPCP()(Code) | | Verifies no PrivateCredentialPermission
for 'this' subject and provided subject
|
testEquals_VerifyCheckSequence | final public void testEquals_VerifyCheckSequence()(Code) | | Verifies that Subject.equals() has defined comparison algorism.
The sequence of checks is following:
1)principal set
2)public credential set
3)private credential set
|
testGetClass_NullParameter | final public void testGetClass_NullParameter()(Code) | | Tests Subject.get(Class) methods for null parameter
|
testGetSetClass | final public void testGetSetClass()(Code) | | Tests Subject.get(Class) methods
|
testHashCode | final public void testHashCode()(Code) | | Tests Subject.hashCode()
|
testHashCode_ACE | final public void testHashCode_ACE()(Code) | | Tests Subject.hashCode() for SecurityException
|
testSerialization | final public void testSerialization() throws Exception(Code) | | |
testSerialization_IllegalPrincipal | final public void testSerialization_IllegalPrincipal() throws Exception(Code) | | Test subject's deserialization in case of invalid principals
Byte stream contains object in principal set that doesn't
implement Principal interface.
The array is invalid because it is not possible to add such object
to principal set via public API methods.
|
testSerialization_NullPrincipal | final public void testSerialization_NullPrincipal() throws Exception(Code) | | Test subject's deserialization in case of invalid('null') principals
Serialization byte array contains null element in principal set
The array is invalid because it is not possible to add null element
to principal set via public API methods.
|
testSetReadOnly_isReadOnly | final public void testSetReadOnly_isReadOnly()(Code) | | Tests Subject.isReadOnly() and Subject.setReadOnly()
|
testSubject | final public void testSubject()(Code) | | Testing Subject() constructor
|
testSubject_3Set | final public void testSubject_3Set()(Code) | | Testing Subject(boolean,Set,Set,Set) constructor
|
testSubject_3Set_InvalidSet | final public void testSubject_3Set_InvalidSet()(Code) | | Testing Subject(boolean,Set,Set,Set) constructor.
Parameter set contains an invalid element.
|
testSubject_3Set_NPE | final public void testSubject_3Set_NPE()(Code) | | Testing Subject(boolean,Set,Set,Set) constructor
Checks NullPointerException if one of passed set is null
|
testSubject_3Set_NoPermissions | final public void testSubject_3Set_NoPermissions()(Code) | | Testing Subject(boolean,Set,Set,Set) constructor
in restricted security context
|
testToString | final public void testToString()(Code) | | |
test_PrincipalSetInvalidSerForm | public void test_PrincipalSetInvalidSerForm() throws Exception(Code) | | Test subject's principal set deserialization in case
of invalid principal set's elements. Two cases are tested:
1) null object
2) an object in principal set that doesn't implement Principal interface.
|
test_PrivateCredentialSetInvalidSerForm | public void test_PrivateCredentialSetInvalidSerForm() throws Exception(Code) | | Test subject's private credential set deserialization in case
of invalid null element.
|
test_PublicCredentialInvalidSerForm | public void test_PublicCredentialInvalidSerForm() throws Exception(Code) | | Test subject's public credential set deserialization in case
of invalid null element.
|
test_getSubject | final public void test_getSubject()(Code) | | Tests Subject.getSubject() for current context
|
test_getSubject_NPE | final public void test_getSubject_NPE()(Code) | | Tests Subject.getSubject() for null parameter
|
test_getSubject_NotSameSubject | final public void test_getSubject_NotSameSubject()(Code) | | Tests Subject.getSubject() for associated context (2 subjects)
|
test_getSubject_PrivilegedAction | final public void test_getSubject_PrivilegedAction()(Code) | | Tests Subject.getSubject() for privileged action in associated context
|
test_getSubject_SameSubject | final public void test_getSubject_SameSubject()(Code) | | Tests Subject.getSubject() for associated context
|
|
|