# Re[4]: Trying to write a Provider

CAllen@symantec.com
Wed, 15 Jul 1998 13:38:24 -0700

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Sekhar Vajjhala: "Re: SEcurity property file"
- Previous message: Jan Luehe: "Re: Re[2]: Trying to write a Provider"

    From: CAllen@symantec.com

    Date: Wed, 15 Jul 1998 13:38:24 -0700

    To: java-security@java.Sun.COM, Jan.Luehe@Eng

    Subject: Re[4]: Trying to write a Provider

--IMA.Boundary.7325350090
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Description: cc:Mail note part

(Sound of hand slapping forehead.) You know, I wondered what was the point of
extending KeyGenerator when all you could supply was a constructor because
everything else was final. Thanks for the help.

Chris

______________________________ Reply Separator _________________________________
Subject: Re: Re[2]: Trying to write a Provider
Author: Jan Luehe <Jan.Luehe@Eng.Sun.COM> at Internet
Date: 7/15/98 1:33 PM

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
--IMA.Boundary.7325350090
Content-Type: text/plain; charset=US-ASCII; name="RFC822 message headers"
Content-Transfer-Encoding: 7bit
Content-Description: cc:Mail note part
Content-Disposition: inline; filename="RFC822 message headers"

Received: from mailer.Symantec.Com ([198.6.49.176]) by smtp-ima.symantec.com
with SMTP
(IMA Internet Exchange 3.0 Enterprise) id 00137D14; Wed, 15 Jul 98 13:31:20
-0700
Received: from lserver.symantec.com (lserver.symantec.com [198.6.49.6])
by mailer.Symantec.Com (8.8.8/8.8.8) with ESMTP id NAA10758
for <CAllen@symantec.com>; Wed, 15 Jul 1998 13:33:26 -0700 (PDT)
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1]) by
lserver.symantec.com (8.8.4/8.7.6) with SMTP id NAA23362 for
<CAllen@symantec.com>; Wed, 15 Jul 1998 13:34:35 -0700 (PDT)
Received: from Eng.Sun.COM (engmail3 [129.144.170.5]) by mercury.Sun.COM
(SMI-8.6/mail.byaddr) with SMTP id NAA29480 for <CAllen@symantec.com>; Wed, 15
Jul 1998 13:33:54 -0700
Received: from shorter.eng.sun.com (shorter.Eng.Sun.COM [129.144.123.35])
by Eng.Sun.COM (SMI-8.6/SMI-5.3) with SMTP id NAA07048;
Wed, 15 Jul 1998 13:33:51 -0700
Received: from laguna.eng.sun.com by shorter.eng.sun.com (SMI-8.6/SMI-SVR4)
id NAA13686; Wed, 15 Jul 1998 13:33:51 -0700
Received: from laguna by laguna.eng.sun.com (SMI-8.6/SMI-SVR4)
id NAA28052; Wed, 15 Jul 1998 13:33:48 -0700
Date: Wed, 15 Jul 1998 13:33:48 -0700 (PDT)
From: Jan Luehe <Jan.Luehe@Eng.Sun.COM>
Reply-To: Jan Luehe <Jan.Luehe@Eng.Sun.COM>
Subject: Re: Re[2]: Trying to write a Provider
To: java-security@java.Sun.COM, Jan.Luehe@Eng.Sun.COM, CAllen@symantec.com
Message-ID: <libSDtMail.9807151333.28422.luehe@shorter>
MIME-Version: 1.0
Content-Type: TEXT/plain; charset=us-ascii
Content-MD5: Fd8W0A81CnB5quNHX01C6Q==
X-Mailer: dtmail 1.1.0 CDE Version 1.1 SunOS 5.5.1 sun4u sparc
--IMA.Boundary.7325350090--

- Next message: Sekhar Vajjhala: "Re: SEcurity property file"
- Previous message: Jan Luehe: "Re: Re[2]: Trying to write a Provider"