added keyserver/proxy support to certify operation
This commit is contained in:
@@ -29,6 +29,7 @@ import java.util.Map;
|
||||
|
||||
import org.sufficientlysecure.keychain.pgp.WrappedUserAttribute;
|
||||
import org.sufficientlysecure.keychain.service.input.CryptoInputParcel;
|
||||
import org.sufficientlysecure.keychain.util.ParcelableProxy;
|
||||
|
||||
|
||||
/**
|
||||
@@ -44,6 +45,7 @@ public class CertifyActionsParcel implements Parcelable {
|
||||
public ArrayList<CertifyAction> mCertifyActions = new ArrayList<>();
|
||||
|
||||
public String keyServerUri;
|
||||
public ParcelableProxy parcelableProxy;
|
||||
|
||||
public CertifyActionsParcel(long masterKeyId) {
|
||||
mMasterKeyId = masterKeyId;
|
||||
@@ -54,6 +56,8 @@ public class CertifyActionsParcel implements Parcelable {
|
||||
mMasterKeyId = source.readLong();
|
||||
// just like parcelables, this is meant for ad-hoc IPC only and is NOT portable!
|
||||
mLevel = CertifyLevel.values()[source.readInt()];
|
||||
keyServerUri = source.readString();
|
||||
parcelableProxy = source.readParcelable(ParcelableProxy.class.getClassLoader());
|
||||
|
||||
mCertifyActions = (ArrayList<CertifyAction>) source.readSerializable();
|
||||
}
|
||||
@@ -66,6 +70,8 @@ public class CertifyActionsParcel implements Parcelable {
|
||||
public void writeToParcel(Parcel destination, int flags) {
|
||||
destination.writeLong(mMasterKeyId);
|
||||
destination.writeInt(mLevel.ordinal());
|
||||
destination.writeString(keyServerUri);
|
||||
destination.writeParcelable(parcelableProxy, flags);
|
||||
|
||||
destination.writeSerializable(mCertifyActions);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user