Exemple #1
0
 /** 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;
 }
Exemple #2
0
 /**
  * Sets the contact owning identity
  *
  * @param identity
  */
 public void setContactOwner(Identity identity) {
   this.contactOwner = identity;
   this.contactOwnerKeyId = identity.getKeyIdentifier();
 }