@Test @SneakyThrows public void verifyCordaDidPublicKey() { DIDPublicKey publicKey = service.getCrypto().toDidKey(service.getIdentityKey().getPublicKey(), "did:hello:world"); assertThat(publicKey.getType()).isEqualTo("JwsVerificationKey2020"); assertThat(publicKey.getId()).isEqualTo("did:hello:world#keys-1"); assertThat(publicKey.getController()).isEqualTo("did:hello:world"); }
public X509Certificate getIdentityKey() { return serviceHub.getMyInfo().getLegalIdentitiesAndCerts().get(0).getCertificate(); }
VCService extends SingletonSerializeAsToken { public X509Certificate getIdentityKey() { return serviceHub.getMyInfo().getLegalIdentitiesAndCerts().get(0).getCertificate(); } }
VCService extends SingletonSerializeAsToken { public X509Certificate getIdentityKey() { return serviceHub.getMyInfo().getLegalIdentitiesAndCerts().get(0).getCertificate(); } VCService(AppServiceHub serviceHub); }
VCService extends SingletonSerializeAsToken { public X509Certificate getIdentityKey() { return serviceHub.getMyInfo().getLegalIdentitiesAndCerts().get(0).getCertificate(); } VCService(AppServiceHub serviceHub); void setNetworkMapUrl(String networkMapUrl); String getNetworkMapUrl(); void setBaseUrl(String baseUrl); String getBaseUrl(); VerifiableCredential sign(VerifiableCredential verifiableCredential); X509Certificate getIdentityKey(); VerifiableCredential issue(Object state); @SneakyThrows void verify(VerifiableCredential verifiableCredential); @SneakyThrows void verify(VerifiableCredential verifiableCredential, PublicKey publicKey); }
VCService extends SingletonSerializeAsToken { public X509Certificate getIdentityKey() { return serviceHub.getMyInfo().getLegalIdentitiesAndCerts().get(0).getCertificate(); } VCService(AppServiceHub serviceHub); void setNetworkMapUrl(String networkMapUrl); String getNetworkMapUrl(); void setBaseUrl(String baseUrl); String getBaseUrl(); VerifiableCredential sign(VerifiableCredential verifiableCredential); X509Certificate getIdentityKey(); VerifiableCredential issue(Object state); @SneakyThrows void verify(VerifiableCredential verifiableCredential); @SneakyThrows void verify(VerifiableCredential verifiableCredential, PublicKey publicKey);  }