|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface HttpExternalAuthorized
Via this interface, the report server gets the user ID of the user that was authorized by an external authenticator. To implement this interface, you can design a mechanism to transfer the authorized user information by HTTP requests. Users can specify their own implementations of this interface by the system property "jrs.httpExternalAuthorized" in the command line.
For example: Suppose the implementation of this interface is com.mycorp.HttpExternalAuthorizedImpl.class. Then use the command line to start the JReport Server (JRServer.bat/sh) or the application server that JReport is published into: java -Djrs.httpExternalAuthorized=com.mycorp.HttpExternalAuthorizedImpl ...
ExternalAuthorized| Field Summary | |
|---|---|
static java.lang.String |
propertyName
The system property name for the implementation of this interface. |
| Method Summary | |
|---|---|
java.lang.String |
getExternalAuthorizedUser(java.lang.String activeRealm,
javax.servlet.http.HttpServletRequest req)
Gets the external authorized user ID. |
boolean |
handleUnAuthenticatedRequest(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String authScheme,
java.lang.String realm)
Handles unauthenticated requests. |
| Methods inherited from interface jet.server.api.ExternalAuthorized |
|---|
askInvalidate, getExternalAuthorizedUser, notifyLogout |
| Field Detail |
|---|
static final java.lang.String propertyName
For example: Suppose the implementation of this interface is com.mycorp.HttpExternalAuthorizedImpl.class. Then use the command line to start the report server: java -Djrs.httpExternalAuthorized=com.mycorp.HttpExternalAuthorizedImpl ...
| Method Detail |
|---|
java.lang.String getExternalAuthorizedUser(java.lang.String activeRealm,
javax.servlet.http.HttpServletRequest req)
activeRealm - the active realm.req - the HttpServletRequest object.
boolean handleUnAuthenticatedRequest(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.lang.String authScheme,
java.lang.String realm)
throws java.io.IOException
req - the HttpServletRequest.res - the HttpServletResponse.authScheme - the authentication scheme. The available value is "Basic" or "Digest".realm - the realm.
java.io.IOException - if an IOException occurs.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||