PublicKey { public abstract String getObjectIdentifier();  static PublicKey getInstance(byte[] key); static PublicKey getInstance(TLV key); boolean compare(PublicKey pk); abstract String getObjectIdentifier(); abstract TLV getTLVEncoded();  }
@Test public void testKeyCVCA() throws Exception { PublicKey pk = chain.getCVCACertificates().get(0).getPublicKey(); assertEquals(pk.getObjectIdentifier(), TAObjectIdentifier.id_TA_ECDSA_SHA_512); }
@Test public void testKeyDV() throws Exception { PublicKey pk = chain.getDVCertificates().get(0).getPublicKey(); assertEquals(pk.getObjectIdentifier(), TAObjectIdentifier.id_TA_ECDSA_SHA_512); }
@Test public void testKeyTerminal() throws Exception { PublicKey pk = chain.getTerminalCertificate().getPublicKey(); assertEquals(pk.getObjectIdentifier(), TAObjectIdentifier.id_TA_ECDSA_SHA_512); }