mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-11 03:25:05 -05:00
wrapped-key-ring: forgot to add UncachedKeyRing class
This commit is contained in:
parent
2176e1ef1c
commit
ef6211e0bd
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user