public class DynamicClientRegistrationServiceImpl extends Object implements DynamicClientRegistrationService
| Constructor and Description |
|---|
DynamicClientRegistrationServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected org.wso2.carbon.registry.core.Registry |
getConfigSystemRegistry() |
boolean |
isOAuthApplicationAvailable(String applicationName)
This method will check the existence of an OAuth application provided application-name.
|
OAuthApplicationInfo |
registerOAuthApplication(RegistrationProfile profile)
This method will register a new OAuth application using the data provided by
RegistrationProfile.
|
boolean |
unregisterOAuthApplication(String userId,
String applicationName,
String consumerKey)
This method will unregister a created OAuth application.
|
public DynamicClientRegistrationServiceImpl()
public OAuthApplicationInfo registerOAuthApplication(RegistrationProfile profile) throws DynamicClientRegistrationException
DynamicClientRegistrationServiceregisterOAuthApplication in interface DynamicClientRegistrationServiceprofile - - RegistrationProfile of the OAuth application to be created.DynamicClientRegistrationExceptionprotected org.wso2.carbon.registry.core.Registry getConfigSystemRegistry()
public boolean unregisterOAuthApplication(String userId, String applicationName, String consumerKey) throws DynamicClientRegistrationException
DynamicClientRegistrationServiceunregisterOAuthApplication in interface DynamicClientRegistrationServiceuserId - - Username of the ownerapplicationName - - OAuth application nameconsumerKey - - ConsumerKey of the OAuth applicationDynamicClientRegistrationExceptionpublic boolean isOAuthApplicationAvailable(String applicationName) throws DynamicClientRegistrationException
DynamicClientRegistrationServiceisOAuthApplicationAvailable in interface DynamicClientRegistrationServiceapplicationName - - OAuth application nameDynamicClientRegistrationExceptionCopyright © 2016 WSO2. All rights reserved.