Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/pg
diff options
context:
space:
mode:
authorDavid Hook <dgh@cryptoworkshop.com>2014-05-09 07:08:05 +0400
committerDavid Hook <dgh@cryptoworkshop.com>2014-05-09 07:08:05 +0400
commitf9581a9cde7af42707a4aa2cc5e3b7a50d92d5fe (patch)
tree82d83917f0a645d80d8c52c701113857f86cfc9c /pg
parentf94591a4e9908a64562bc3f4ac3d2507b97e67f7 (diff)
fixed typo.
further UserIDPacket changes
Diffstat (limited to 'pg')
-rw-r--r--pg/src/main/j2me/org/bouncycastle/openpgp/PGPPublicKey.java10
-rw-r--r--pg/src/main/j2me/org/bouncycastle/openpgp/PGPSecretKey.java6
2 files changed, 8 insertions, 8 deletions
diff --git a/pg/src/main/j2me/org/bouncycastle/openpgp/PGPPublicKey.java b/pg/src/main/j2me/org/bouncycastle/openpgp/PGPPublicKey.java
index fdb91f76..552f324a 100644
--- a/pg/src/main/j2me/org/bouncycastle/openpgp/PGPPublicKey.java
+++ b/pg/src/main/j2me/org/bouncycastle/openpgp/PGPPublicKey.java
@@ -383,9 +383,9 @@ public class PGPPublicKey
for (int i = 0; i != ids.size(); i++)
{
- if (ids.get(i) instanceof String)
+ if (ids.get(i) instanceof UserIDPacket)
{
- temp.add(ids.get(i));
+ temp.add(((UserIDPacket)ids.get(i)).getID());
}
}
@@ -548,11 +548,11 @@ public class PGPPublicKey
for (int i = 0; i != ids.size(); i++)
{
- if (ids.get(i) instanceof String)
+ if (ids.get(i) instanceof UserIDPacket)
{
- String id = (String)ids.get(i);
+ UserIDPacket id = (UserIDPacket)ids.get(i);
- out.writePacket(new UserIDPacket(id));
+ out.writePacket(id);
}
else
{
diff --git a/pg/src/main/j2me/org/bouncycastle/openpgp/PGPSecretKey.java b/pg/src/main/j2me/org/bouncycastle/openpgp/PGPSecretKey.java
index ed97d807..b9c9885f 100644
--- a/pg/src/main/j2me/org/bouncycastle/openpgp/PGPSecretKey.java
+++ b/pg/src/main/j2me/org/bouncycastle/openpgp/PGPSecretKey.java
@@ -521,11 +521,11 @@ public class PGPSecretKey
for (int i = 0; i != pub.ids.size(); i++)
{
- if (pub.ids.get(i) instanceof String)
+ if (pub.ids.get(i) instanceof UserIDPacket)
{
- String id = (String)pub.ids.get(i);
+ UserIDPacket id = (UserIDPacket)pub.ids.get(i);
- out.writePacket(new UserIDPacket(id));
+ out.writePacket(id);
}
else
{