public class OpenIDManager extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OpenIDManager.CONST |
static class |
OpenIDManager.OpenIDProviderInformation
Information about a provider from the discovery process
|
static class |
OpenIDManager.OpenIDProviderList
List of OpenID providers
|
| Constructor and Description |
|---|
OpenIDManager(OpenIDRequest theReq) |
| Modifier and Type | Method and Description |
|---|---|
OpenIDManager.OpenIDProviderInformation |
associate(OpenIDProtocolAdapter adapter,
OpenIDManager.OpenIDProviderList listOfProviders)
Associate with a list of open id providers
|
boolean |
authenticate(OpenIDProtocolAdapter adapter,
OpenIDManager.OpenIDProviderInformation providerInfo)
Authenticate an user with the provider
|
OpenIDManager.OpenIDProviderList |
discoverProviders() |
OpenIDRequest |
getOpenIDRequest()
Get the OpenID Request
|
void |
logout(OpenIDProtocolAdapter adapter)
Log an user out from an openid provider
|
void |
setUserString(String userString)
Set the user string
|
boolean |
verify(OpenIDProtocolAdapter adapter,
Map<String,String> parameterMap,
String receivedURL)
Verify a previously authenticated user with the provider
|
public OpenIDManager(OpenIDRequest theReq)
public void setUserString(String userString)
userString - public OpenIDRequest getOpenIDRequest()
public OpenIDManager.OpenIDProviderList discoverProviders() throws OpenIDDiscoveryException, OpenIDConsumerException
public OpenIDManager.OpenIDProviderInformation associate(OpenIDProtocolAdapter adapter, OpenIDManager.OpenIDProviderList listOfProviders) throws OpenIDConsumerException, OpenIDLifeCycleException
adapter - Protocol adapter (such as http)listOfProviders - (a list of providers from discovery)OpenIDConsumerExceptionOpenIDLifeCycleExceptionpublic boolean authenticate(OpenIDProtocolAdapter adapter, OpenIDManager.OpenIDProviderInformation providerInfo) throws OpenIDDiscoveryException, OpenIDConsumerException, OpenIDMessageException, OpenIDProtocolException
adapter - protocol adapterproviderInfo - Information about a provider derived from discovery processOpenIDDiscoveryExceptionOpenIDConsumerExceptionOpenIDMessageExceptionOpenIDProtocolExceptionpublic boolean verify(OpenIDProtocolAdapter adapter, Map<String,String> parameterMap, String receivedURL) throws OpenIDMessageException, OpenIDDiscoveryException, OpenIDAssociationException, OpenIDLifeCycleException
adapter - protocol adapterparameterMap - request parametersreceivedURL - url where the response will be receivedOpenIDMessageExceptionOpenIDDiscoveryExceptionOpenIDAssociationExceptionOpenIDLifeCycleExceptionpublic void logout(OpenIDProtocolAdapter adapter) throws OpenIDLifeCycleException
adapter - protocol adapterOpenIDLifeCycleExceptionCopyright © 2014 JBoss Inc.. All Rights Reserved.