Re: JCE1.2 doc: Where is SUN provider class?

Jan Luehe (luehe@laguna.eng.sun.com)
Mon, 23 Nov 1998 12:14:36 -0800 (PST)

Edward:

When you look at the "java.security" file, you'll see:

-------------

# security.provider.1=sun.security.provider.Sun
#
# (The number 1 is used for the default provider.)
#
# Note: Statically registered Provider subclasses are instantiated
# when the system is initialized. Providers can be dynamically
# registered instead by calls to either the addProvider or
# insertProviderAt method in the Security class.

#
# List of providers and their preference orders (see above):
#
security.provider.1=sun.security.provider.Sun

-------------

The line that is commented out is part of the documentation
of this file, and is followed by the same line *not* commented
out.

Jan

> Date: Mon, 23 Nov 1998 12:06:32 -0800 (PST)
> From: Edward McKnight <Edward.McKnight@Eng>
> Subject: Re: JCE1.2 doc: Where is SUN provider class?
> To: luehe@laguna.eng.sun.com
> Cc: java-security@java.Sun.COM, Edward.McKnight@Eng
> MIME-Version: 1.0
> Content-MD5: rhFiEbxdFnIzBjuWpTK9Wg==
>
>
> OK, I found the lib/security. It was under jre/lib not <jdk>/lib which
> is where I looked when the docs said "java.security file in the
> lib/security directory of your JDK installation..."
>
> I've added the SunJCE entry and my code now works. But I notice that
> the "security.provider.1=sun.security.provider.Sun" line is commented
> out by default and my code runs fine. The docs state: " This means that
> when you install the "SunJCE" provider, you have to make sure that the
> "SUN" provider is also installed."
>
> "Installing" the SunJCE means adding an entry to the security file.
> Apparently it doesn't mean the same thing for the "SUN" provider ??
>
> thx, --emk@eng
>
> >
> >
> > > My install of java (Classic VM (build JDK-1.2fcs-R, green threads,
> > > nojit)) didn't have a default lib/security/java.security file. Didn't
> > > even have the security directory!
> > >
> > > I've created the entry for SunJCE but can't find SUN provider classes to
> > > enter.
> >
> >
> > Are you sure?
> >
> > I remember installing the R build, and there was a
> > lib/security directory and a lib/security/java.security file.
> >
> > Jan
> >
>