[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] DH Algorithm not available

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); } } }