hello all,
the attached patch --already committed-- fixes the above PR.
2006-07-19 Raif S. Naffah <[EMAIL PROTECTED]>
PR Classpath/26302
* resource/java/security/classpath.security: Updated copyright year.
(auth.login.defaultCallbackHandler): New property; set to our default
callback handler. This is needed by the LoginContext when no callback
handler was specified.
* javax/security/auth/login/LoginContext.java: Updated copyright year.
(LoginContext(4)): Assign passed parameters to local fields before
invoking
lookup method.
cheers;
rsn
Index: classpath.security
===================================================================
RCS file: /cvsroot/classpath/classpath/resource/java/security/classpath.security,v
retrieving revision 1.6
diff -u -r1.6 classpath.security
--- classpath.security 29 Apr 2006 06:16:10 -0000 1.6
+++ classpath.security 19 Jul 2006 09:05:41 -0000
@@ -1,5 +1,5 @@
# classpath.security
-# Copyright (C) 2002 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2006 Free Software Foundation, Inc.
#
# This file is part of GNU Classpath.
#
@@ -41,3 +41,7 @@
security.provider.3=gnu.javax.crypto.jce.GnuSasl
security.provider.4=gnu.javax.net.ssl.provider.Jessie
security.provider.5=gnu.javax.security.auth.callback.GnuCallbacks
+
+# The VM-wide default callback handler class name. MUST be a subclass of
+# javax.security.auth.callback.CallbackHandler
+auth.login.defaultCallbackHandler=gnu.javax.security.auth.callback.DefaultCallbackHandler
Index: LoginContext.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/security/auth/login/LoginContext.java,v
retrieving revision 1.5
diff -u -r1.5 LoginContext.java
--- LoginContext.java 8 Dec 2005 15:56:04 -0000 1.5
+++ LoginContext.java 19 Jul 2006 09:06:21 -0000
@@ -1,5 +1,5 @@
/* LoginContext.java
- Copyright (C) 2004 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2006 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -91,6 +91,9 @@
Configuration config)
throws LoginException
{
+ this.name = name;
+ this.subject = subject;
+ this.cbHandler = cbHandler;
if (config == null)
config = Configuration.getConfig();
AppConfigurationEntry[] entries = config.getAppConfigurationEntry (name);
@@ -104,9 +107,6 @@
sharedState = new HashMap();
for (int i = 0; i < entries.length; i++)
modules[i] = lookupModule (entries[i], subject, sharedState);
- this.name = name;
- this.subject = subject;
- this.cbHandler = cbHandler;
}
/**