public interface OpenIdProviderApi
VirtualApplicationScoped.
This API (implemented by the framework) comes along with an SPI:
OpenIdProviderSpi (implemented by the client application). Dialogues
are used to bridge corresponding API and SPI calls (see Dialogued).
Most methods in this API require that the HTTP response is passed as a parameter. The implementation needs the response, in order to redirect the browser to the relying party. Beware not to touch the HTTP response after one of these method returns.
| Modifier and Type | Method and Description |
|---|---|
void |
authenticationFailed(javax.servlet.http.HttpServletResponse response)
This is one of the possible reactions of the application after having
received and processed an authentication request through the API call
OpenIdProviderSpi.authenticate(String, String, boolean, ResponseHolder)
. |
void |
authenticationSucceeded(String userName,
javax.servlet.http.HttpServletResponse response)
This is one of the possible reactions of the application after having
received and processed an authentication request through the API call
OpenIdProviderSpi.authenticate(String, String, boolean, ResponseHolder)
. |
String |
getOpLocalIdentifierForUserName(String userName)
This method can be used to find out the OP-Local identifier for a given
user name.
|
void |
setAttributes(Map<String,List<String>> attributeValues,
javax.servlet.http.HttpServletResponse response) |
void authenticationSucceeded(String userName, javax.servlet.http.HttpServletResponse response)
OpenIdProviderSpi.authenticate(String, String, boolean, ResponseHolder)
. By calling this method, the application informs the OpenID provider
module that authentication succeeded. The userName of the authenticated
user is provided. The OpenID provider module will redirect the user back
to the relying party's website.userName - user nameresponse - HTTP responsevoid authenticationFailed(javax.servlet.http.HttpServletResponse response)
OpenIdProviderSpi.authenticate(String, String, boolean, ResponseHolder)
. By calling this method, the application informs the OpenID provider
module that authentication failed. The OpenID provider module will
redirect the user back to the relying party's website.userName - user nameresponse - HTTP responsevoid setAttributes(Map<String,List<String>> attributeValues, javax.servlet.http.HttpServletResponse response)
String getOpLocalIdentifierForUserName(String userName)
userName - user nameCopyright © 2013 Seam Framework. All Rights Reserved.