public interface OpenIdRelyingPartyApi
OpenIdRelyingPartyInApplicationScopeProducerOpenIdRelyingPartyInVirtualApplicationScopeProducerVirtualApplicationScoped.
This API (implemented by the framework) comes along with an SPI:
OpenIdRelyingPartySpi (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 |
|---|---|
OpenIdRequestedAttribute |
createOpenIdRequestedAttribute(String alias,
String typeUri,
boolean required,
Integer count)
Creates a request to fetch a certain attribute from the OpenID Provider.
|
void |
login(String identifier,
List<OpenIdRequestedAttribute> attributes,
javax.servlet.http.HttpServletResponse response)
Start an OpenID login dialogue.
|
void login(String identifier, List<OpenIdRequestedAttribute> attributes, javax.servlet.http.HttpServletResponse response)
identifier - either a Claimed Identifier (identifying the user) or an
OP Identifier (identifying the OpenID Provider where the user
has an account)attributes - attributes that are requested (they should have
different aliases)response - the HTTP servlet responseOpenIdRequestedAttribute createOpenIdRequestedAttribute(String alias, String typeUri, boolean required, Integer count)
login(java.lang.String, java.util.List<org.jboss.seam.security.external.openid.api.OpenIdRequestedAttribute>, javax.servlet.http.HttpServletResponse) method.alias - name that identifies this requested attributetypeUri - attribute type identifierrequired - indicates whether the attribute is requiredcount - indicates the maximum number of values to be returned by the
provider; must be at least 1Copyright © 2013 Seam Framework. All Rights Reserved.