@Deprecated public class OpenIdVerifier extends java.lang.Object implements Verifier
The verifier can also try to request the following attributes to be returned by the OpenIdProvider - setOptionalAttribute and setRequiredAttribute.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROVIDER_FLICKR
Deprecated.
|
static java.lang.String |
PROVIDER_GOOGLE
Deprecated.
|
static java.lang.String |
PROVIDER_MYOPENID
Deprecated.
|
static java.lang.String |
PROVIDER_MYSPACE
Deprecated.
|
static java.lang.String |
PROVIDER_YAHOO
Deprecated.
|
RESULT_INVALID, RESULT_MISSING, RESULT_STALE, RESULT_UNKNOWN, RESULT_UNSUPPORTED, RESULT_VALID
Constructor and Description |
---|
OpenIdVerifier()
Deprecated.
Default constructor.
|
OpenIdVerifier(java.lang.String defaultProvider)
Deprecated.
Constructor with a default OpenIdProvider/Identifier.
|
OpenIdVerifier(java.lang.String defaultProvider,
RelayingParty rp)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addOptionalAttribute(AttributeExchange attributeName)
Deprecated.
Adds required User attribute to retrieve during authentication.
|
void |
addRequiredAttribute(AttributeExchange attributeName)
Deprecated.
Adds an optional User attribute to retrieve during authentication
|
void |
clearOptionalAttributes()
Deprecated.
Clears the set of optional attributes to retrieve.
|
void |
clearRequiredAttributes()
Deprecated.
Clears the set of required attributes to retrieve.
|
void |
setDefaultProvider(java.lang.String provider)
Deprecated.
Sets the default provider.
|
void |
setUseDefaultProvider(boolean useDefault)
Deprecated.
Indicates if the defaultProvider must be used in case none is provided in
the request.
|
int |
verify(Request request,
Response response)
Deprecated.
Verifies a request.
|
public static final java.lang.String PROVIDER_FLICKR
public static final java.lang.String PROVIDER_GOOGLE
public static final java.lang.String PROVIDER_MYOPENID
public static final java.lang.String PROVIDER_MYSPACE
public static final java.lang.String PROVIDER_YAHOO
public OpenIdVerifier()
public OpenIdVerifier(java.lang.String defaultProvider)
defaultProvider
- The default OpenIdProvider/Identifier.public OpenIdVerifier(java.lang.String defaultProvider, RelayingParty rp)
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(java.lang.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 Verifier
Verifier.RESULT_INVALID
if it fails,
Verifier.RESULT_VALID
if success,
Verifier.RESULT_MISSING
while waiting for a callback
response.Copyright © 2005-2024 Restlet.