1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4 
5 package org.mozilla.gecko.sync.repositories.domain;
6 
7 import org.mozilla.gecko.sync.CryptoRecord;
8 import org.mozilla.gecko.sync.repositories.RecordFactory;
9 import org.mozilla.gecko.sync.repositories.domain.PasswordRecord;
10 import org.mozilla.gecko.sync.repositories.domain.Record;
11 
12 public class PasswordRecordFactory extends RecordFactory {
13   @Override
createRecord(Record record)14   public Record createRecord(Record record) {
15     PasswordRecord r = new PasswordRecord();
16     r.initFromEnvelope((CryptoRecord) record);
17     return r;
18   }
19 }
20