Home | History | Annotate | Download | only in security

Lines Matching refs:Identity

25 import java.security.Identity;
40 * Tests for class Identity
71 Identity i2 = new IdentityStub("testEquals", IdentityScope.getSystemScope());
73 Identity i3 = new IdentityStub("testEquals3");
79 * verify Identity.toString()
86 * verify Identity() creates instance
93 * verify Identity(String) creates instance with given name
96 Identity i = new IdentityStub("iii");
105 * verify Identity(String, IdentityScope) creates instance with given name and in give scope
109 Identity i = new IdentityStub("iii2", s);
117 * verify addCertificate(Certificate certificate) adds a certificate for this identity.
118 * If the identity has a public key, the public key in the certificate must be the same
122 Identity i = new IdentityStub("iii");
137 * verify addCertificate(Certificate certificate) adds a certificate for this identity.
138 * if the identity does not have a public key, the identity's public key is set to be that specified in the certificate.
141 Identity i = new IdentityStub("iii");
167 // Identity i = new IdentityStub("iii");
189 * verify certificates() returns a copy of all certificates for this identity
192 Identity i = new IdentityStub("iii");
212 * verify Identity.identityEquals(Identity) return true, only if names and public keys are equal
229 assertEquals(value[k+1], new Boolean(i.identityEquals((Identity)value[k])));
232 Identity i2 = IdentityScope.getSystemScope().getIdentity(name);
238 * verify Identity.toString(boolean) return string representation of identity
248 * verify Identity.getScope() returns identity's scope
251 Identity i = new IdentityStub("testGetScope");
255 Identity i2 = new IdentityStub("testGetScope2", s);
261 * verify Identity.setPublicKey() throws KeyManagementException if key is invalid
265 Identity i2 = new IdentityStub("testSetPublicKey2_2", IdentityScope.getSystemScope());
277 // * verify Identity.setPublicKey() throws KeyManagementException if key is already used
281 // Identity i1 = new IdentityStub("testSetPublicKey3_1", IdentityScope.getSystemScope());
282 // Identity i2 = new IdentityStub("testSetPublicKey3_2", IdentityScope.getSystemScope());
292 * verify Identity.setPublicKey() removes old key and all identity's certificates
296 Identity i = new IdentityStub("testSetPublicKey4");
297 PublicKeyStub pk1 = new PublicKeyStub("kkk", "Identity.testSetPublicKey4", null);
305 PublicKeyStub pk2 = new PublicKeyStub("zzz", "Identity.testSetPublicKey4", null);
312 * verify Identity.getPublicKey() returns public key
315 Identity i = new IdentityStub("testGetPublicKey");
317 PublicKey pk = new PublicKeyStub("kkk", "Identity.testGetPublicKey", null);
324 Identity i = new IdentityStub("testGetInfo");
330 Identity i = new IdentityStub("testGetName");