diff options
author | Vincent Breitmoser <valodim@mugenguild.com> | 2014-05-03 19:05:03 +0200 |
---|---|---|
committer | Vincent Breitmoser <valodim@mugenguild.com> | 2014-05-03 19:05:03 +0200 |
commit | ef6211e0bd380c4f6bca28cda327cfbe4c57a21e (patch) | |
tree | c3aa3f7597a36d9ea5916195698de5c26e127153 /OpenKeychain/src/main | |
parent | 2176e1ef1c29ca4549b256745c26c871503fe5ce (diff) | |
download | open-keychain-ef6211e0bd380c4f6bca28cda327cfbe4c57a21e.tar.gz open-keychain-ef6211e0bd380c4f6bca28cda327cfbe4c57a21e.tar.bz2 open-keychain-ef6211e0bd380c4f6bca28cda327cfbe4c57a21e.zip |
wrapped-key-ring: forgot to add UncachedKeyRing class
Diffstat (limited to 'OpenKeychain/src/main')
-rw-r--r-- | OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/UncachedKeyRing.java | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/UncachedKeyRing.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/UncachedKeyRing.java new file mode 100644 index 000000000..86a2ed48d --- /dev/null +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/pgp/UncachedKeyRing.java @@ -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; + } +} |