|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface HttpExternalAuthorized
By this interface, the report server gets the user ID who was authorized by an external authenticator. To implement this interface, can design a mechanism to transfer the authorized user info by HTTP requests. Users can specify the user's implementation 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 report server: 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,
HttpServletRequest req)
Gets the external authorized user ID. |
boolean |
handleUnAuthenticatedRequest(HttpServletRequest req,
HttpServletResponse res,
java.lang.String authScheme,
java.lang.String realm)
Handle unauthenticated requests. |
| Methods inherited from interface jet.server.api.ExternalAuthorized |
|---|
askInvalidate, 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,
HttpServletRequest req)
getExternalAuthorizedUser in interface ExternalAuthorizedactiveRealm - the active realm.req - the HttpServletRequest object.
boolean handleUnAuthenticatedRequest(HttpServletRequest req,
HttpServletResponse res,
java.lang.String authScheme,
java.lang.String realm)
throws java.io.IOException
req - the HttpServletRequest.res - the HttpServletResponse.authScheme - the the authentication scheme. The available values are "Basic" or "Digest".realm - the realm.
java.io.IOException - if a IOException occurs.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||