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!

Problem compiling with IVParameterSpec

843810Apr 14 2004 — edited Apr 15 2004
I'm trying to build a password file that will be created by one program and read by a different one using CipherInput/OutputStreams. I believe that I need a repeatable key so that as I write the file, I can also read it.
I'm trying to use cipher.init (Cipher.ENCRYPT_MODE, key, ivSpec) with ivSpec set to the same array of bytes in both my read and write routines. When I try to compile the write class, I get an error at my import statement for the IVParameterSpec.
Line 78:   import javax.crypto.spec.IVParameterSpec;
Error:
[javac] C:\rat\jtim\src\com\baesystems\jtim\RemotePassword.java:78: cannot resolve symbol
[javac] symbol : class IVParameterSpec
[javac] location: package spec
[javac] import javax.crypto.spec.IVParameterSpec;


Do I need to load something else into the JDK to get IVParameterSpec? What could I be doing wrong?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 13 2004
Added on Apr 14 2004
2 comments
513 views