wrapped-key-ring: forgot to add UncachedKeyRing class

This commit is contained in:
Vincent Breitmoser 2014-05-03 19:05:03 +02:00
parent 2176e1ef1c
commit ef6211e0bd

View File

@ -0,0 +1,29 @@
package org.sufficientlysecure.keychain.pgp;
import org.spongycastle.openpgp.PGPPublicKeyRing;
import org.spongycastle.openpgp.PGPSecretKeyRing;
public class UncachedKeyRing {
final PGPPublicKeyRing mPublicRing;
final PGPSecretKeyRing mSecretRing;
UncachedKeyRing(PGPPublicKeyRing publicRing, PGPSecretKeyRing secretRing) {
// this one must not be false!
assert(publicRing != null);
mPublicRing = publicRing;
mSecretRing = secretRing;
}
UncachedKeyRing(PGPPublicKeyRing publicRing) {
this(publicRing, null);
}
public PGPPublicKeyRing getPublicRing() {
return mPublicRing;
}
public PGPSecretKeyRing getSecretRing() {
return mSecretRing;
}
}