- All Implemented Interfaces:
- ResourceFactory
public class SsoResourceFactory
extends Object
implements ResourceFactory
This class is intended to be used with the SsoAuthenticationHandler to
provide path based authentication.
For example, if a user logs in via a web page and there session id is ABC123,
they might be able to edit documents in MS Word without being challenged for
a login on a path like /ABC123/mydoc.doc
To use this class, you should use it to wrap your existing resource factory.
Eg
MyResourceFactory rf = new MyResourceFactory(); SsoResourceFactory ssoRf =
new SsoResourceFactory(rf);
And then connect ssoRf to the HttpManager like this:
HttpManager hm = new HttpManager(ssoRf);
URL's which do not relate to SSO will be delegated to the wrapped resource
factory.
When a SSO request is received, this resource factory will use the adapted
path to locate a resource with the wrapped resource factory.
- Author:
- brad