Date: Wed, 15 Jul 1998 13:33:48 -0700 (PDT)
From: Jan Luehe <Jan.Luehe@Eng>
Subject: Re: Re[2]: Trying to write a Provider
To: java-security@java.Sun.COM, Jan.Luehe@Eng, CAllen@symantec.com
Chris:
> However, I am supplying Spi classes, with the correct names, as far as
> I can tell. For instance, I have the following classes for the
> KeyGenerator:
>
> public final class XORKeyGeneratorSpi extends KeyGeneratorSpi
> public final class XORKeyGenerator extends KeyGenerator
> public final class XORKey implements SecretKey
>
> For the Cipher classes, I have:
>
> public final class XORspi extends javax.crypto.CipherSpi
> public final class XOR extends javax.crypto.Cipher
You do not need the "XORKeyGenerator" and "XOR" classes.
All you need are the "Spi" classes.
A call to "KeyGenerator.getInstance()" will have javax.crypto.JceSecurity
create a javax.crypto.KeyGenerator object, and encapsulate your
provider's implementation (which is a subclass of javax.crypto.KeyGeneratorSpi)
in it.
Jan