Generating PGPPublicKeyRing

Discussion in 'Java' started by Sandy, Nov 7, 2005.

  1. Sandy

    Sandy Guest

    Hi everybody,
    I'm stuck up with a problem i'm using Bouncycastle API to perform
    encryption & other things, i'm facing an issue while creating a
    PGPPublicKeyRing, the issue is i am provided with 2 Keys MasterKey &
    SubKey & i want to use these 2 keys to generate KeyRing that is the
    PublicKeyRing should contain both these keys in itself so the approach
    is as follow

    I encode() master key and store it in public key ring, and later add
    sub key to the ring via PGPPublicKeyRing.insertPublicKey . Stepping
    through this in the debugger, this all looks fine. but when i import
    this PublicKeyRing in PublicKeyRingCollection i see both the PublicKeys
    in 2 separate PublicKeyRing
     
    Sandy, Nov 7, 2005
    #1
    1. Advertising

  2. Sandy

    Roedy Green Guest

    On 7 Nov 2005 00:26:24 -0800, "Sandy" <> wrote,
    quoted or indirectly quoted someone who said :

    >I encode() master key and store it in public key ring, and later add
    >sub key to the ring via PGPPublicKeyRing.insertPublicKey . Stepping
    >through this in the debugger, this all looks fine. but when i import
    >this PublicKeyRing in PublicKeyRingCollection i see both the PublicKeys
    >in 2 separate PublicKeyRing


    I will hazard a guess there is a method to add a public/private key
    pair as a unit and another method to add just a public key.

    --
    Canadian Mind Products, Roedy Green.
    http://mindprod.com Java custom programming, consulting and coaching.
     
    Roedy Green, Nov 7, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Valentin Tihomirov
    Replies:
    3
    Views:
    537
    Jonathan Bromley
    Oct 28, 2003
  2. New to Power Analysis

    Any idea about generating SAIF files ?

    New to Power Analysis, Oct 20, 2004, in forum: VHDL
    Replies:
    3
    Views:
    928
    Jon Beniston
    Oct 22, 2004
  3. Replies:
    3
    Views:
    2,558
  4. Divyang M
    Replies:
    4
    Views:
    1,006
    Divyang M
    Feb 17, 2005
  5. Sandy
    Replies:
    0
    Views:
    391
    Sandy
    Nov 22, 2005
Loading...

Share This Page