/** Creates an instance of Contact and sets the contactOwner and contactOwnerKeyId */ public Contact( Identity owner, String alias, Collection<DropURL> dropUrls, QblECPublicKey pubKey) { super(dropUrls); this.contactOwner = owner; this.contactOwnerKeyId = owner.getKeyIdentifier(); this.setEcPublicKey(pubKey); this.alias = alias; }
/** * Sets the contact owning identity * * @param identity */ public void setContactOwner(Identity identity) { this.contactOwner = identity; this.contactOwnerKeyId = identity.getKeyIdentifier(); }