| org.apache.harmony.security.tests.java.security.KSPrivateKeyEntryTest
KSPrivateKeyEntryTest | public class KSPrivateKeyEntryTest extends TestCase (Code) | | Tests for KeyStore.PrivateKeyEntry class constructor and methods
|
KSPrivateKeyEntryTest | public KSPrivateKeyEntryTest(String arg0)(Code) | | Constructor for KSPrivateKeyEntryTest.
Parameters: arg0 - |
suite | public static Test suite()(Code) | | |
testGetCertificate | public void testGetCertificate()(Code) | | Test for getCertificate() method
Assertion: returns end Certificate (with 0 index in chain)
|
testGetCertificateChain | public void testGetCertificateChain()(Code) | | Test for getCertificateChain() method Assertion: returns
array of the Certificates corresponding to chain
|
testGetPrivateKey | public void testGetPrivateKey()(Code) | | Test for getPrivateKey() method
Assertion: returns PrivateKey object
|
testPrivateKeyEntry01 | public void testPrivateKeyEntry01()(Code) | | Test for PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain)
constructor
Assertion: throws NullPointerException when privateKey is null
|
testPrivateKeyEntry02 | public void testPrivateKeyEntry02()(Code) | | Test for PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain)
constructor
Assertion: throws NullPointerException when chain is null
and throws IllegalArgumentException when chain length is 0
|
testPrivateKeyEntry03 | public void testPrivateKeyEntry03()(Code) | | Test for PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain)
constructor
Assertion: throws IllegalArgumentException when chain contains certificates
of different types
|
testPrivateKeyEntry04 | public void testPrivateKeyEntry04()(Code) | | Test for PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain)
constructor
Assertion: throws IllegalArgumentException when algorithm of privateKey
does not match the algorithm of PublicKey in the end certificate (with 0 index)
|
testToString | public void testToString()(Code) | | Test for toString() method
Assertion: returns non null String
|
|
|