| |
|
| javax.security.auth.PrivateCredentialPermissionTest
PrivateCredentialPermissionTest | public class PrivateCredentialPermissionTest extends TestCase (Code) | | Tests PrivateCredentialPermission class implementation.
|
gForm | final public static byte[] gForm(Code) | | |
selfForm | final public static byte[] selfForm(Code) | | |
PrivateCredentialPermissionTest | public PrivateCredentialPermissionTest(String name)(Code) | | Constructor for PrivateCredentialPermissionTest.
Parameters: name - |
testCtor | final public void testCtor()(Code) | | |
testDuplicates | final public void testDuplicates()(Code) | | |
testEquals_01 | final public void testEquals_01()(Code) | | [C1 P1 "nuke" P2 "nuke"] equals [C1 P1 "duke" P2 "nuke"]
|
testEquals_02 | final public void testEquals_02()(Code) | | two permissions are equal if the order of the Principals in
the respective target names is not relevant.
|
testEquals_03 | final public void testEquals_03()(Code) | | two permissions are not equal even if its have the same credential class
and a different number of principals.
|
testEquals_04 | final public void testEquals_04()(Code) | | two permissions are not equal if either of them has not the same
credential class, principal class and principal name
|
testEquals_05 | final public void testEquals_05()(Code) | | two permissions are not equal if either of them has not the same
principal class and principal name
|
testEquals_06 | final public void testEquals_06()(Code) | | [C1 P1 "duke"] equals [C1 P1 "duke"] and
hashCode of them equals too.
|
testEquals_07 | final public void testEquals_07()(Code) | | two permissions are not equal if either of them has not the same principal name
|
testEquals_08 | final public void testEquals_08()(Code) | | Verifies that a permission object is equal to itself
|
testEquals_09 | final public void testEquals_09()(Code) | | [C1 P1 "duke"] does not equal NULL
|
testEquals_10 | final public void testEquals_10()(Code) | | two permissions are not equals if either of them has not the same credential class
|
testGetCredentialClassAndGetAction | final public void testGetCredentialClassAndGetAction()(Code) | | the method newPermissionCollection() always returns null,
the method getActions() always returns "read" and
the method getCredentialClass() returns the name of the CredentialClass.
|
testGetPrincipals_01 | final public void testGetPrincipals_01()(Code) | | Returns the set of principals which to represent like array[x][y]
Implementation specific.
|
testGetPrincipals_02 | final public void testGetPrincipals_02()(Code) | | the same as the method testGetPrincipals_01()
|
testImmutability | final public void testImmutability()(Code) | | |
testImplies_01 | final public void testImplies_01()(Code) | | [C1 P1 "duke"] implies [C1 P1 "duke" P2 "nuke"].
|
testImplies_02 | final public void testImplies_02()(Code) | | [C1 P1 "nuke"] implies [C1 P1 "duke" P2 "nuke"].
|
testImplies_03 | final public void testImplies_03()(Code) | | [* P1 "duke"] implies [C1 P1 "duke"]
|
testImplies_04 | final public void testImplies_04()(Code) | | [C1P1 "duke"] implies [C1 P1 "*"]
|
testImplies_05 | final public void testImplies_05()(Code) | | [C1 P1 "duke" P2 "nuke"] implies [C1 * "*"]
|
testImplies_06 | final public void testImplies_06()(Code) | | [C1 P1 "duke" P2 "nuke"] implies [C1 P1 "duke" P2 "nuke" P3 "duke"]
|
testImplies_07 | final public void testImplies_07()(Code) | | [C2 P1 "duke" ] does not imply [C1 P1 "duke" P2 "nuke" ]
|
testImplies_08 | final public void testImplies_08()(Code) | | [C1 P3 "duke" ] does not imply [C1 P1 "duke" P2 "nuke" ]
|
testImplies_09 | final public void testImplies_09()(Code) | | [C1 P1 "nuke" ] does not imply [C1 P1 "duke" P3 "nuke" ]
|
testImplies_10 | final public void testImplies_10()(Code) | | [C1 P1 "nuke" P2 "buke"] does not imply [C1 P1 "duke" P2 "nuke" ]
|
testImplies_11 | final public void testImplies_11()(Code) | | [C1 P1 "duke" P2 "buke"] does not imply [C1 P1 "*" ]
|
testImplies_110 | final public void testImplies_110()(Code) | | [C1 P1 "nuke" P2 "nuke" P3 "buke"] does not imply [C1 P1 "duke" P2 "nuke" P3 "kuke"]
|
testImplies_12 | final public void testImplies_12()(Code) | | [C1 P2 "*"] does not imply [C1 P1 "*" ]
|
testImplies_13 | final public void testImplies_13()(Code) | | [* P3 "duke"] does not imply [C1 P1 "duke" P2 "nuke"]
|
testImplies_14 | final public void testImplies_14()(Code) | | [* P2 "buke"] does not imply [C1 P1 "duke" P2 "nuke"]
|
testImplies_15 | final public void testImplies_15()(Code) | | [C1 P1 "buke"] does not imply [C1 P1 "*"]
|
testImplies_16 | final public void testImplies_16()(Code) | | [C1 * "*"] does not imply [C1 P1 "duke" P2 "nuke"]
|
testImplies_17 | final public void testImplies_17()(Code) | | [C1 a.c* "nuke"] not implies [C1 P1 "duke" a.c.P2 "nuke"]
|
testImplies_18 | final public void testImplies_18()(Code) | | A permission is not an instance of PrivateCredentialPermission
|
testPCP_02 | final public void testPCP_02()(Code) | | Create a incorrect ctor without string of Principal class and Principal name,
expected IAE
|
testPCP_03 | final public void testPCP_03()(Code) | | Create a incorrect ctor without string of Principal name,
expected IAE
|
testPCP_04 | final public void testPCP_04()(Code) | | Create a incorrect ctor without string of Principal class,
expected IAE
|
testPCP_05 | final public void testPCP_05()(Code) | | Create a incorrect ctor. Principal Class can not be a wildcard (*)
value if Principal Name is not a wildcard (*) value,
expected IAE
|
testPCP_14 | final public void testPCP_14()(Code) | | a target name should not be null
|
testPCP_15 | final public void testPCP_15()(Code) | | test empty principal/name pairs
|
testSerialization_Golden | final public void testSerialization_Golden() throws Exception(Code) | | |
testSerialization_Self | final public void testSerialization_Self() throws Exception(Code) | | |
testSerialization_Wildcard | final public void testSerialization_Wildcard() throws Exception(Code) | | |
testWhiteSpaces | final public void testWhiteSpaces()(Code) | | |
|
|
|