Package org.wso2.am.admin.clients.oauth
Class OAuthAdminServiceClient
java.lang.Object
org.wso2.am.admin.clients.oauth.OAuthAdminServiceClient
-
Constructor Summary
ConstructorsConstructorDescriptionOAuthAdminServiceClient(String backEndUrl, String sessionCookie) create Remote claim clientOAuthAdminServiceClient(String backEndUrl, String userName, String password) Create admin client using username and password -
Method Summary
Modifier and TypeMethodDescriptionorg.wso2.carbon.identity.oauth.stub.dto.OAuthConsumerAppDTOgetOAuthAppByName(String applicationName) org.wso2.carbon.identity.oauth.stub.dto.OAuthConsumerAppDTOgetOAuthApplicationData(String consumerKey) voidregisterOAuthApplicationData(org.wso2.carbon.identity.oauth.stub.dto.OAuthConsumerAppDTO application) voidupdateScope(String scope, String[] addedClaims, String[] removedClaims)
-
Constructor Details
-
OAuthAdminServiceClient
public OAuthAdminServiceClient(String backEndUrl, String sessionCookie) throws org.apache.axis2.AxisFault create Remote claim client- Parameters:
backEndUrl- - url to logsessionCookie- - session cookie- Throws:
org.apache.axis2.AxisFault
-
OAuthAdminServiceClient
public OAuthAdminServiceClient(String backEndUrl, String userName, String password) throws org.apache.axis2.AxisFault Create admin client using username and password- Parameters:
backEndUrl-userName-password-- Throws:
org.apache.axis2.AxisFault
-
-
Method Details
-
updateScope
public void updateScope(String scope, String[] addedClaims, String[] removedClaims) throws org.wso2.carbon.identity.oauth.stub.OAuthAdminServiceIdentityOAuthAdminException, RemoteException - Throws:
org.wso2.carbon.identity.oauth.stub.OAuthAdminServiceIdentityOAuthAdminExceptionRemoteException
-
getOAuthApplicationData
public org.wso2.carbon.identity.oauth.stub.dto.OAuthConsumerAppDTO getOAuthApplicationData(String consumerKey) throws org.wso2.carbon.identity.oauth.stub.OAuthAdminServiceIdentityOAuthAdminException, RemoteException - Throws:
org.wso2.carbon.identity.oauth.stub.OAuthAdminServiceIdentityOAuthAdminExceptionRemoteException
-
registerOAuthApplicationData
public void registerOAuthApplicationData(org.wso2.carbon.identity.oauth.stub.dto.OAuthConsumerAppDTO application) throws RemoteException, org.wso2.carbon.identity.oauth.stub.OAuthAdminServiceIdentityOAuthAdminException - Throws:
RemoteExceptionorg.wso2.carbon.identity.oauth.stub.OAuthAdminServiceIdentityOAuthAdminException
-
getOAuthAppByName
public org.wso2.carbon.identity.oauth.stub.dto.OAuthConsumerAppDTO getOAuthAppByName(String applicationName) throws Exception - Throws:
Exception
-