Bugs item #575946, was opened at 2002-07-01 05:51
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=575946&group_id=22866
Category: JBossSX
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Bruno Lowagie (blowagie)
>Assigned to: Scott M Stark (starksm)
Summary: Default SecurityDomain for SSL
Initial Comment:
Hi Scott,
In class org.jboss.security.ssl.RMISSLClientSocketFactory
you create a DomainServerSocketFactory like this:
/** Creates new RMISSLServerSocketFactory */
public RMISSLServerSocketFactory()
{
domainFactory = new DomainServerSocketFactory();
}
Why don't you do it like this:
domainFactory = DomainServerSocketFactory.getDefault()
The following constructor is never called:
/** Create a sockate factory instance that uses the
given SecurityDomain
as the source for the SSL KeyManagerFactory and
TrustManagerFactory.
*/
public DomainServerSocketFactory(SecurityDomain
securityDomain) throws IOException
{
if( securityDomain == null )
throw new IOException("The securityDomain may
not be null");
this.securityDomain = securityDomain;
}
The empty constructor is used instead, so I guess the
method setSecurityDomain should be called somewhere
(I did a search on this method, but I didn't find calls
to this method from outside the SSL package).
And I don't find how the securityDomain-variable can be
set. The securityDomain variable remains null and I
always get a NullPointerException in line 111.
----------------------------------------------------------------------
>Comment By: Scott M Stark (starksm)
Date: 2002-07-14 02:12
Message:
Logged In: YES
user_id=175228
The securityDomain should be set by the user which in this
case would be the JRMPInvoker. I have changed the default
ctor initialization so that there is a chance this factory will
work without calling setSecurityDomain.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=575946&group_id=22866
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development