JAAS set-up [message #125249] |
Tue, 17 March 2009 08:12  |
Eclipse User |
|
|
|
Hello,
I'm trying to set up authorization and authentication in a RAP project,
using JAAS. I'm having trouble setting the platform up though.
The RAP target platform doesnt include the org.eclipse.equinox.security
plugins. I installed them there manually (hoping it would be alright to do
so), and it solves a few issues, but now Im having access restriction
problems with several classes that Eclipse is resolving in the
javax.security packages. For example, for the Callback class (with import
javax.security.auth.callback.Callback), I get:
Access restriction: The type Callback is not accessible due to restriction
on required library C:\Program Files\Java\jdk1.6.0_07\jre\lib\rt.jar
How should I set everything up to be able to use JAAS in a RAP application?
Thank you :-) Keep up the great work!
Tiago
|
|
|
|
|
|
|
|
|
Re: JAAS set-up [message #126221 is a reply to message #126145] |
Wed, 25 March 2009 06:41  |
Eclipse User |
|
|
|
Originally posted by: roland.muecke.itemis.de
Tiago Nunes schrieb:
> I am getting closer, changing the execution environment to CDC
> Foundation (1.1) gave me access to some classes (e.g ILoginContext and
> LoginContextFactory in org.eclipse.equinox.security.auth).
> I still don't have access to Callback, CallbackHandler or
> UnsupportedCallbackException, for example.
>
> I am requiring the plug-ins org.eclipse.equinox.security and
> org.eclipse.equinox.security.ui. Are there others that I should require?
Maybe you should check your project settings, especially the JRE System
Library in the Java Build Path. The Execution Environment specified in
MANIFEST.MF does not influence which JDK eclipse uses for compliling.
In order to use JAAS you need at least JDK 1.4.2.
Roland
--
Roland Mücke
Consultant & Coach
itemis AG
Niederlassung Leipzig
Ludwig-Erhard-Straße 51
04103 Leipzig
Rechtlicher Hinweis:
Registergericht: Amtsgericht Dortmund HRB 20621
Sitz der Gesellschaft: 44536 Lünen, Am Brambusch 15-24
Vorstand: Wolfgang Neuhaus, Jens Wagener, Dr. Georg Pietrek
Aufsichtsrat: Prof. Dr. Burkhard Igel (Vorsitzender), Stephan Grollmann,
Michael Neuhaus
|
|
|
Powered by
FUDForum. Page generated in 0.09973 seconds