@Test(expected = UnsupportedOperationException.class) public void testPublicKeyItRemove() throws Exception { Iterator<UncachedPublicKey> it = ring.getPublicKeys(); it.remove(); }
public Iterator<UncachedPublicKey> getPublicKeys() { final Iterator<PGPPublicKey> it = mRing.getPublicKeys(); return new Iterator<UncachedPublicKey>() { public void remove() { throw new UnsupportedOperationException(); } public UncachedPublicKey next() { return new UncachedPublicKey(it.next()); } public boolean hasNext() { return it.hasNext(); } }; }
UncachedKeyRing { public Iterator<UncachedPublicKey> getPublicKeys() { final Iterator<PGPPublicKey> it = mRing.getPublicKeys(); return new Iterator<UncachedPublicKey>() { public void remove() { throw new UnsupportedOperationException(); } public UncachedPublicKey next() { return new UncachedPublicKey(it.next()); } public boolean hasNext() { return it.hasNext(); } }; } }
UncachedKeyRing { public Iterator<UncachedPublicKey> getPublicKeys() { final Iterator<PGPPublicKey> it = mRing.getPublicKeys(); return new Iterator<UncachedPublicKey>() { public void remove() { throw new UnsupportedOperationException(); } public UncachedPublicKey next() { return new UncachedPublicKey(it.next()); } public boolean hasNext() { return it.hasNext(); } }; } UncachedKeyRing(PGPKeyRing ring); }
UncachedKeyRing { public Iterator<UncachedPublicKey> getPublicKeys() { final Iterator<PGPPublicKey> it = mRing.getPublicKeys(); return new Iterator<UncachedPublicKey>() { public void remove() { throw new UnsupportedOperationException(); } public UncachedPublicKey next() { return new UncachedPublicKey(it.next()); } public boolean hasNext() { return it.hasNext(); } }; } UncachedKeyRing(PGPKeyRing ring); long getMasterKeyId(); long getCreationTime(); UncachedPublicKey getPublicKey(); UncachedPublicKey getPublicKey(long keyId); Iterator<UncachedPublicKey> getPublicKeys(); boolean isSecret(); byte[] getEncoded(); void encode(OutputStream out); byte[] getFingerprint(); int getVersion(); static UncachedKeyRing decodeFromData(byte[] data); boolean containsKeyWithAnyFingerprint(List<byte[]> expectedFingerprints); static IteratorWithIOThrow<UncachedKeyRing> fromStream(InputStream rawStream); void encodeArmored(OutputStream out, String version); @SuppressWarnings("ConstantConditions") CanonicalizedKeyRing canonicalize(OperationLog log, int indent); @SuppressWarnings("ConstantConditions") CanonicalizedKeyRing canonicalize(OperationLog log, int indent, boolean forExport); UncachedKeyRing merge(UncachedKeyRing other, OperationLog log, int indent); UncachedKeyRing extractPublicKeyRing(); @VisibleForTesting static UncachedKeyRing forTestingOnlyAddDummyLocalSignature(
            UncachedKeyRing uncachedKeyRing, String passphrase); }
UncachedKeyRing { public Iterator<UncachedPublicKey> getPublicKeys() { final Iterator<PGPPublicKey> it = mRing.getPublicKeys(); return new Iterator<UncachedPublicKey>() { public void remove() { throw new UnsupportedOperationException(); } public UncachedPublicKey next() { return new UncachedPublicKey(it.next()); } public boolean hasNext() { return it.hasNext(); } }; } UncachedKeyRing(PGPKeyRing ring); long getMasterKeyId(); long getCreationTime(); UncachedPublicKey getPublicKey(); UncachedPublicKey getPublicKey(long keyId); Iterator<UncachedPublicKey> getPublicKeys(); boolean isSecret(); byte[] getEncoded(); void encode(OutputStream out); byte[] getFingerprint(); int getVersion(); static UncachedKeyRing decodeFromData(byte[] data); boolean containsKeyWithAnyFingerprint(List<byte[]> expectedFingerprints); static IteratorWithIOThrow<UncachedKeyRing> fromStream(InputStream rawStream); void encodeArmored(OutputStream out, String version); @SuppressWarnings("ConstantConditions") CanonicalizedKeyRing canonicalize(OperationLog log, int indent); @SuppressWarnings("ConstantConditions") CanonicalizedKeyRing canonicalize(OperationLog log, int indent, boolean forExport); UncachedKeyRing merge(UncachedKeyRing other, OperationLog log, int indent); UncachedKeyRing extractPublicKeyRing(); @VisibleForTesting static UncachedKeyRing forTestingOnlyAddDummyLocalSignature(
            UncachedKeyRing uncachedKeyRing, String passphrase);  }