|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OpenIdRelyingPartyApi
API to the OpenID Relying Party (RP) of Seam security. In order to use this API, one of the following alternative beans needs to be activated:
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.
| Method Summary | |
|---|---|
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,
HttpServletResponse response)
Start an OpenID login dialogue. |
| Method Detail |
|---|
void login(String identifier,
List<OpenIdRequestedAttribute> attributes,
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 response
OpenIdRequestedAttribute createOpenIdRequestedAttribute(String alias,
String typeUri,
boolean required,
Integer count)
login(java.lang.String, java.util.List, 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 1
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||