Class OAuthAdminServiceClient


  • public class OAuthAdminServiceClient
    extends Object
    • Constructor Detail

      • OAuthAdminServiceClient

        public OAuthAdminServiceClient​(String backEndUrl,
                                       String sessionCookie)
                                throws org.apache.axis2.AxisFault
        create Remote claim client
        Parameters:
        backEndUrl - - url to log
        sessionCookie - - 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 Detail

      • 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.OAuthAdminServiceIdentityOAuthAdminException
        RemoteException
      • 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.OAuthAdminServiceIdentityOAuthAdminException
        RemoteException
      • registerOAuthApplicationData

        public void registerOAuthApplicationData​(org.wso2.carbon.identity.oauth.stub.dto.OAuthConsumerAppDTO application)
                                          throws RemoteException,
                                                 org.wso2.carbon.identity.oauth.stub.OAuthAdminServiceIdentityOAuthAdminException
        Throws:
        RemoteException
        org.wso2.carbon.identity.oauth.stub.OAuthAdminServiceIdentityOAuthAdminException
      • getOAuthAppByName

        public org.wso2.carbon.identity.oauth.stub.dto.OAuthConsumerAppDTO getOAuthAppByName​(String applicationName)
                                                                                      throws Exception
        Throws:
        Exception