1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.portletbridge.portlet;
17
18 import javax.portlet.RenderRequest;
19
20 import org.apache.commons.httpclient.Credentials;
21 import org.portletbridge.ResourceException;
22
23 /***
24 * Interface for supporting pluggable authentication.
25 * This needs to be configured as an init parameter in
26 * portlet xml called "authenticatorClassName".
27 * @author jmccrindle
28 *
29 */
30 public interface BridgeAuthenticator {
31 /***
32 * @param request the render request.
33 * @return a subclass of Credentials for HttpClient to use
34 * @throws ResourceException if there was a problem getting
35 * the credentials.
36 */
37 Credentials getCredentials(RenderRequest request) throws ResourceException;
38 }