[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.newcomer] DH Algorithm not available
|
- From: sunil.hps@xxxxxxxxx (Sunil )
- Date: Fri, 10 Oct 2008 15:39:17 +0000 (UTC)
- Newsgroups: eclipse.newcomer
- Organization: Eclipse
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
I have all the relevant Jars for JCE/JSCH/JSSE in my Eclipse classpath.
If i am running a simple test listed below, I am getting DH Algorithm not
available, I am not sure how to get this. Any help on this is appreciated.
import java.security.KeyPairGenerator;
import javax.crypto.KeyAgreement;
class foo{
public static void main(String[] arg){
try{
KeyPairGenerator myKpairGen=KeyPairGenerator.getInstance("DH");
KeyAgreement myKeyAgree=KeyAgreement.getInstance("DH");
}
catch(java.security.NoSuchAlgorithmException
e){System.out.println(e); }
}
}