public interface OpenIdProviderSpi
OpenIdProviderApi.
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.| Modifier and Type | Method and Description |
|---|---|
void |
authenticate(String realm,
String userName,
boolean immediate,
ResponseHolder responseHolder)
This method is called after receipt of an authentication request from a
relying party.
|
void |
fetchParameters(List<OpenIdRequestedAttribute> requestedAttributes,
ResponseHolder responseHolder) |
boolean |
userExists(String userName)
This method is called to check whether a username exists.
|
void authenticate(String realm, String userName, boolean immediate, ResponseHolder responseHolder)
OpenIdProviderApi.authenticationSucceeded(java.lang.String, javax.servlet.http.HttpServletResponse) or
OpenIdProviderApi.authenticationFailed(javax.servlet.http.HttpServletResponse).realm - represents the part of URL-space for which the authentication
is valid; realms are designed to give the end user an indication
of the scope of the authentication request; the application
should present the realm when requesting the end user's approval
for the authentication requestuserName - this optional attribute indicates the end user that needs
to be authenticated; if this parameter is null, the application
needs to ask the use for her usernameimmediate - if this is true, there must be no interaction with the
user (silent authentication)responseHolder - boolean userExists(String userName)
userName - the usernamevoid fetchParameters(List<OpenIdRequestedAttribute> requestedAttributes, ResponseHolder responseHolder)
Copyright © 2013 Seam Framework. All Rights Reserved.