本文整理汇总了Java中org.wso2.carbon.identity.oauth.stub.OAuthAdminServiceException类的典型用法代码示例。如果您正苦于以下问题:Java OAuthAdminServiceException类的具体用法?Java OAuthAdminServiceException怎么用?Java OAuthAdminServiceException使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
OAuthAdminServiceException类属于org.wso2.carbon.identity.oauth.stub包,在下文中一共展示了OAuthAdminServiceException类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: registerOauthApplication
import org.wso2.carbon.identity.oauth.stub.OAuthAdminServiceException; //导入依赖的package包/类
public void registerOauthApplication(String appName) throws RemoteException, OAuthAdminServiceException {
OAuthConsumerAppDTO oAuthConsumerDTO = new OAuthConsumerAppDTO();
oAuthConsumerDTO.setApplicationName(appName);
oAuthConsumerDTO.setOAuthVersion(OAUTH_2_0);
oAuthConsumerDTO.setGrantTypes(GRANT_TYPE);
if (log.isDebugEnabled()) {
log.debug(String.format("Trying to register oAuth application [%s]", appName));
}
stub.registerOAuthApplicationData(oAuthConsumerDTO);
}
示例2: getOAuthApplication
import org.wso2.carbon.identity.oauth.stub.OAuthAdminServiceException; //导入依赖的package包/类
public OAuthConsumerAppDTO getOAuthApplication(String name) throws RemoteException, OAuthAdminServiceException {
return stub.getOAuthApplicationDataByAppName(name);
}
示例3: removeOauthApplication
import org.wso2.carbon.identity.oauth.stub.OAuthAdminServiceException; //导入依赖的package包/类
public void removeOauthApplication(String appName) throws RemoteException, OAuthAdminServiceException {
if (log.isDebugEnabled()) {
log.debug(String.format("Removing oAuth application %s", appName));
}
stub.removeOAuthApplicationData(appName);
}