Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

NoSuchAlgorithmException : Algorithm DESede not available

843810Oct 9 2002 — edited Jun 25 2003
Hi,

Could any one tell me why this error comes
The particular method which throws the Exception is
/////////////////////////////////////////////////////////////////////
SecretKeyFactory keyFactory = SecretKeyFactory.getInstance("DESede");

The Exception stackTrace is
java.security.NoSuchAlgorithmException: Algorithm DESede not available
at javax.crypto.SunJCE_b.a(DashoA6275)
at javax.crypto.SecretKeyFactory.getInstance(DashoA6275)
at com.orbitech.armor.syncd.server.ArmorKeyTabFile.ReadKeyTabFile(ArmorK
eyTabFile.java:173)
at com.orbitech.armor.syncd.server.OracleRegistryPlugin.init(OracleRegis
tryPlugin.java:210)
at ArmorSystemServlet.processPrnInfo(ArmorSystemServlet.java:194)
at ArmorSystemServlet.doPost(ArmorSystemServlet.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:826)
at com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRun
ner.java:533)
com.orbitech.armor.syncd.server.ArmorException: Error in Reading Keytab file
at com.orbitech.armor.syncd.server.ArmorKeyTabFile.ReadKeyTabFile(ArmorK
eyTabFile.java:212)
at com.orbitech.armor.syncd.server.OracleRegistryPlugin.init(OracleRegis
tryPlugin.java:210)
at ArmorSystemServlet.processPrnInfo(ArmorSystemServlet.java:194)
at ArmorSystemServlet.doPost(ArmorSystemServlet.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:826)
at com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRun
ner.java:533)

/////////////////////////////////////////////////////////////////////


Im trying to use JCE api's in a servlet running under a iplanet ssl server. Also my classpath setting contains the jce jars as well.

I am able to see very well the SunJCE provider and the algorithm are installed. The code I used too see them is
//////////////////////////////////
System.out.println("Cipher algorithms : ");
Object[] o = Security.getAlgorithms("Cipher").toArray();
for (int i=0; i<o.length; i++) {
System.out.println((String) o[ i ]);
}
Cipher algorithms :
BLOWFISH
DESEDE
PBEWITHMD5ANDTRIPLEDES
DES
PBEWITHMD5ANDDES

System.out.println("MessageDigest algorithms : ");
o = Security.getAlgorithms("MessageDigest").toArray();
for (int i=0; i<o.length; i++) {
System.out.println((String) o[ i ]);
}
MessageDigest algorithms :
MD5
SHA

System.out.println("Signature algorithms : ");
o = Security.getAlgorithms("Signature").toArray();
for (int i=0; i<o.length; i++) {
System.out.println((String) o[ i ]);
}
Signature algorithms :
MD2WITHRSA
MD5WITHRSA
SHA1WITHDSA
SHA1WITHRSA


System.out.println("Mac algorithms : ");
o = Security.getAlgorithms("Mac").toArray();
for (int i=0; i<o.length; i++) {
System.out.println((String) o[ i ]);
}
Mac algorithms :
HMACSHA1
HMACMD5

System.out.println("Keystore algorithms : ");
o = Security.getAlgorithms("Keystore").toArray();
for (int i=0; i<o.length; i++) {
System.out.println((String) o[ i ]);
}

Keystore algorithms :
PKCS12
JCEKS
JKS

System.out.println("Providers : ");
Provider p[] = Security.getProviders();
for(int i = 0; i<p.length; i++) {
System.out.println( p.getName());
}
Providers :
SUN
SunJSSE
SunRsaSign
SunJCE
SunJGSS

//////////////////////////////////

Thanks in advance

regds........jp
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 23 2003
Added on Oct 9 2002
3 comments
598 views