classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

java.security.KeyPairGenerator oddity


From: Chris Gray
Subject: java.security.KeyPairGenerator oddity
Date: Thu, 10 Jun 2004 16:21:03 +0200
User-agent: KMail/1.5.4

Looking at KeyPairGenrator I see that one of the initialize() methods is 
defined as follows:

public void initialize(int keysize, SecureRandom random)
  {
    initialize(keysize, random);
  }

Either I'm missing something or this is a case of recursion: see 
recursion. ;->

Sun's API docs are maddeningly vague as usual, but I _think_ that the default 
implementation should just throw an UnsupportedOperationException.

BTW if anyone knows where to find a more useful description of how this stuff 
is supposed to work I'd be grateful for a pointer ...

Best wishes

-- 
Chris Gray                      /k/ Embedded Java Solutions
Embedded & Mobile Java, OSGi        http://www.kiffer.be/k/
address@hidden                         +32 3 216 0369





reply via email to

[Prev in Thread] Current Thread [Next in Thread]