|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OpenIdRelyingPartySpi
Interface that needs to be implemented by applications that want to act as an
OpenID Relying Party. It is the counterpart of the
OpenIdRelyingPartyApi.
Most methods in this interface have a responseHolder parameter, which
contains the HTTP response. This is a way of handing over the control over
the browser to the application. The application is responsible for writing
the response (either a normal HTML response, or an error, or a redirect).
Typically, the application will redirect the user to a URL within the
application.
| Method Summary | |
|---|---|
void |
loginFailed(String message,
ResponseHolder responseHolder)
This method is called after failed external authentication of the user. |
void |
loginSucceeded(OpenIdPrincipal principal,
ResponseHolder responseHolder)
This method is called after successful external authentication of the user. |
| Method Detail |
|---|
void loginSucceeded(OpenIdPrincipal principal,
ResponseHolder responseHolder)
OpenIdRelyingPartyApi.login(java.lang.String, java.util.List, javax.servlet.http.HttpServletResponse) . The dialogue can be used, for
example, to store the page that the user requested, so that the user can
be redirected to this page after login took place.
principal - principalresponseHolder - object holding the HTTP servlet response
void loginFailed(String message,
ResponseHolder responseHolder)
OpenIdRelyingPartyApi.login(java.lang.String, java.util.List, javax.servlet.http.HttpServletResponse) .
message - reason why the login failedresponseHolder - object holding the HTTP servlet response
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||