| |
|
| java.security.IdentityTest
IdentityTest | public class IdentityTest extends TestCase (Code) | | Tests for class Identity
|
IdentityTest | public IdentityTest(String name)(Code) | | Constructor for IdentityTest.
Parameters: name - |
testAddCertificate1 | public void testAddCertificate1() throws Exception(Code) | | verify addCertificate(Certificate certificate) adds a certificate for this identity.
If the identity has a public key, the public key in the certificate must be the same
|
testAddCertificate2 | public void testAddCertificate2() throws Exception(Code) | | verify addCertificate(Certificate certificate) adds a certificate for this identity.
if the identity does not have a public key, the identity's public key is set to be that specified in the certificate.
|
testAddCertificate3 | public void testAddCertificate3() throws Exception(Code) | | verify addCertificate(Certificate certificate) throws SecurityException is permission is denied
|
testAddCertificate4 | public void testAddCertificate4() throws Exception(Code) | | verify addCertificate(Certificate certificate) throws KeyManagementException if certificate is null
|
testCertificates | public void testCertificates() throws Exception(Code) | | verify certificates() returns a copy of all certificates for this identity
|
testGetInfo | public void testGetInfo()(Code) | | |
testGetName | public void testGetName()(Code) | | |
testGetPublicKey | public void testGetPublicKey() throws Exception(Code) | | verify Identity.getPublicKey() returns public key
|
testGetScope | public void testGetScope() throws Exception(Code) | | verify Identity.getScope() returns identity's scope
|
testHashCode | public void testHashCode()(Code) | | |
testIdentity | public void testIdentity()(Code) | | verify Identity() creates instance
|
testIdentityEquals | public void testIdentityEquals() throws Exception(Code) | | verify Identity.identityEquals(Identity) return true, only if names and public keys are equal
|
testIdentityString | public void testIdentityString()(Code) | | |
testIdentityStringIdentityScope | public void testIdentityStringIdentityScope() throws Exception(Code) | | verify Identity(String, IdentityScope) creates instance with given name and in give scope
|
testRemoveCertificate2 | public void testRemoveCertificate2() throws Exception(Code) | | verify removeCertificate(Certificate certificate) throws SecurityException if permission is denied
|
testSetInfo | public void testSetInfo() throws Exception(Code) | | verify Identity.setInfo() throws SecurityException if permission is denied
|
testSetPublicKey1 | public void testSetPublicKey1() throws Exception(Code) | | verify Identity.setPublicKey() throws SecurityException if permission is denied
|
testSetPublicKey2 | public void testSetPublicKey2() throws Exception(Code) | | verify Identity.setPublicKey() throws KeyManagementException if key is invalid
|
testSetPublicKey4 | public void testSetPublicKey4() throws Exception(Code) | | verify Identity.setPublicKey() removes old key and all identity's certificates
|
testToString1 | public void testToString1()(Code) | | verify Identity.toString() throws Exception is permission is denied
|
testToString2 | public void testToString2()(Code) | | verify Identity.toString()
|
testToStringboolean | public void testToStringboolean() throws Exception(Code) | | verify Identity.toString(boolean) return string representation of identity
|
|
|
|