code: public static ECKey fromEncrypted(EncryptedData encryptedPrivateKey, KeyCrypter crypter, byte[] pubKey) {
          ECKey key = fromPublicOnly(pubKey);
          key.encryptedPrivateKey = checkNotNull(encryptedPrivateKey);
          key.keyCrypter = checkNotNull(crypter);
          return key;
      }
docs: Constructs a key that has an encrypted private component. The given object wraps encrypted bytes and an
  initialization vector. Note that the key will not be decrypted during this call: the returned ECKey is
  unusable for signing unless a decryption key is supplied.