public class OAuthConsumerDAO extends AbstractDAO<OAuthConsumerDO>
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log |
registry
Constructor and Description |
---|
OAuthConsumerDAO(org.wso2.carbon.registry.core.Registry registry) |
Modifier and Type | Method and Description |
---|---|
String |
getOAuthConsumerSecret(String consumerKey)
Returns oAuth consumer secret for a give consumer key.
|
void |
registerOAuthConsumer(OAuthConsumerDO consumer)
Register an oAuth consumer.
|
protected OAuthConsumerDO |
resourceToObject(org.wso2.carbon.registry.core.Resource resource)
Converts a registry resource to an object.
|
getAllObjects, getAllObjectsWithPropertyValue, getFirstObjectWithPropertyValue
public OAuthConsumerDAO(org.wso2.carbon.registry.core.Registry registry)
registry
- registry instancepublic void registerOAuthConsumer(OAuthConsumerDO consumer) throws org.wso2.carbon.identity.base.IdentityException
consumer
- oauth consumerorg.wso2.carbon.identity.base.IdentityException
- if error occurs while registering the consumerpublic String getOAuthConsumerSecret(String consumerKey) throws org.wso2.carbon.identity.base.IdentityException
consumerKey
- consumer keyorg.wso2.carbon.identity.base.IdentityException
- if error occurs while obtaining the consumer secretprotected OAuthConsumerDO resourceToObject(org.wso2.carbon.registry.core.Resource resource)
AbstractDAO
resourceToObject
in class AbstractDAO<OAuthConsumerDO>
resource
- registry resourceCopyright © 2019 WSO2. All rights reserved.