|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.restlet.ext.openid.OpenIdVerifier
public class OpenIdVerifier
Verifier that will do remote verification of using a provided openid_identifier. The verifier will search for the openid_identifier in the following three ways
The verifier can also try to request the following attributes to be returned by the OpenIdProvider - setOptionalAttribute and setRequiredAttribute.
| Field Summary | |
|---|---|
static String |
PROVIDER_FLICKR
|
static String |
PROVIDER_GOOGLE
|
static String |
PROVIDER_MYOPENID
|
static String |
PROVIDER_MYSPACE
|
static String |
PROVIDER_YAHOO
|
| Fields inherited from interface org.restlet.security.Verifier |
|---|
RESULT_INVALID, RESULT_MISSING, RESULT_STALE, RESULT_UNKNOWN, RESULT_UNSUPPORTED, RESULT_VALID |
| Constructor Summary | |
|---|---|
OpenIdVerifier()
Default constructor. |
|
OpenIdVerifier(String defaultProvider)
Constructor with a default OpenIdProvider/Identifier. |
|
OpenIdVerifier(String defaultProvider,
RelayingParty rp)
|
|
| Method Summary | |
|---|---|
void |
addOptionalAttribute(AttributeExchange attributeName)
Adds required User attribute to retrieve during authentication. |
void |
addRequiredAttribute(AttributeExchange attributeName)
Adds an optional User attribute to retrieve during authentication |
void |
clearOptionalAttributes()
Clears the set of optional attributes to retrieve. |
void |
clearRequiredAttributes()
Clears the set of required attributes to retrieve. |
void |
setDefaultProvider(String provider)
Sets the default provider. |
void |
setUseDefaultProvider(boolean useDefault)
Indicates if the defaultProvider must be used in case none is provided in the request. |
int |
verify(Request request,
Response response)
Verifies a request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PROVIDER_FLICKR
public static final String PROVIDER_GOOGLE
public static final String PROVIDER_MYOPENID
public static final String PROVIDER_MYSPACE
public static final String PROVIDER_YAHOO
| Constructor Detail |
|---|
public OpenIdVerifier()
public OpenIdVerifier(String defaultProvider)
defaultProvider - The default OpenIdProvider/Identifier.
public OpenIdVerifier(String defaultProvider,
RelayingParty rp)
| Method Detail |
|---|
public void addOptionalAttribute(AttributeExchange attributeName)
attributeName - The name of the attribute. See valid attributes.public void addRequiredAttribute(AttributeExchange attributeName)
attributeName - The name of the attribute. See valid attributes.public void clearOptionalAttributes()
public void clearRequiredAttributes()
public void setDefaultProvider(String provider)
public void setUseDefaultProvider(boolean useDefault)
useDefault - True if the defaultProvider must be used.
public int verify(Request request,
Response response)
verify in interface VerifierVerifier.RESULT_INVALID if it fails,
Verifier.RESULT_VALID if success,
Verifier.RESULT_MISSING while waiting for a callback
response.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||