@Test public void testHFCAIdentityNewInstance() throws Exception { HFCAClient client = HFCAClient.createNewInstance("http: client.setCryptoSuite(crypto); HFCAIdentity ident = client.newHFCAIdentity("testid"); Assert.assertNotNull(ident); Assert.assertSame(HFCAIdentity.class, ident.getClass()); Assert.assertEquals(ident.getEnrollmentId(), "testid"); }
public String getEnrollmentId() { return enrollmentID; }
HFCAIdentity { public String getEnrollmentId() { return enrollmentID; } }
HFCAIdentity { public String getEnrollmentId() { return enrollmentID; } HFCAIdentity(String enrollmentID, HFCAClient client);   HFCAIdentity(JsonObject result); }
HFCAIdentity { public String getEnrollmentId() { return enrollmentID; } HFCAIdentity(String enrollmentID, HFCAClient client);   HFCAIdentity(JsonObject result); String getEnrollmentId(); String getType(); void setType(String type); String getSecret(); void setSecret(String secret); Integer getMaxEnrollments(); void setMaxEnrollments(Integer maxEnrollments); String getAffiliation(); void setAffiliation(String affiliation); void setAffiliation(HFCAAffiliation affiliation); Collection<Attribute> getAttributes(); void setAttributes(Collection<Attribute> attributes); boolean isDeleted(); int read(User registrar); int create(User registrar); int update(User registrar); int delete(User registrar); }
HFCAIdentity { public String getEnrollmentId() { return enrollmentID; } HFCAIdentity(String enrollmentID, HFCAClient client);   HFCAIdentity(JsonObject result); String getEnrollmentId(); String getType(); void setType(String type); String getSecret(); void setSecret(String secret); Integer getMaxEnrollments(); void setMaxEnrollments(Integer maxEnrollments); String getAffiliation(); void setAffiliation(String affiliation); void setAffiliation(HFCAAffiliation affiliation); Collection<Attribute> getAttributes(); void setAttributes(Collection<Attribute> attributes); boolean isDeleted(); int read(User registrar); int create(User registrar); int update(User registrar); int delete(User registrar);  }