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

Jan Luehe (luehe@laguna.eng.sun.com)
Fri, 17 Jul 1998 09:38:40 -0700 (PDT)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Jun Huang: "authentication problem in appletviewer1.1"
- Previous message: krzydyn@perytnet.pl: "lower security"
- Maybe in reply to: CAllen@symantec.com: "Re[4]: Trying to write a Provider"

    Date: Fri, 17 Jul 1998 09:38:40 -0700 (PDT)

    From: Jan Luehe <luehe@laguna.eng.sun.com>

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

    To: java-security@java.Sun.COM, CAllen@symantec.com

Chris:

> XORKeyGenerator xorKeyGenerator = getInstance("XOR", "Allen");

This probably is

KeyGenerator.getInstance("XOR", "Allen");
right?

> Here are the classes:
>
> public final class AllenProvider extends Provider {
> public AllenProvider() {
> super("Allen", 1.0, "Allen's Cryptographic Provider");
>
> put("Cipher.XOR", "allen.security.XOR");
> put("KeyGenerator.XOR", "allen.security.XORKeyGenerator");
> }
> }

What I meant in my previous email is that you should reference
your "Spi" classes in your provider master file, i.e.:

put("Cipher.XOR", "allen.security.XORSpi");
put("KeyGenerator.XOR", "allen.security.XORKeyGeneratorSpi");

That should work.

Jan

- Next message: Jun Huang: "authentication problem in appletviewer1.1"
- Previous message: krzydyn@perytnet.pl: "lower security"
- Maybe in reply to: CAllen@symantec.com: "Re[4]: Trying to write a Provider"