Class AppPortalUtils

java.lang.Object
org.wso2.identity.apps.common.util.AppPortalUtils

public class AppPortalUtils extends Object
App portal utils.
  • Method Details

    • createOAuth2Application

      public static void createOAuth2Application(String applicationName, String portalPath, String consumerKey, String consumerSecret, String appOwner, int tenantId, String tenantDomain, String bindingType, List<String> grantTypes) throws org.wso2.carbon.identity.oauth.IdentityOAuthAdminException
      Create OAuth2 application.
      Parameters:
      applicationName - application name.
      portalPath - portal path.
      consumerKey - consumer key.
      consumerSecret - consumer secret.
      appOwner - application owner.
      tenantId - tenant id.
      tenantDomain - tenant domain.
      grantTypes - grant types.
      Throws:
      org.wso2.carbon.identity.oauth.IdentityOAuthAdminException - in case of failure.
    • createApplication

      @Deprecated public static void createApplication(String appName, String appOwner, String appDescription, String consumerKey, String consumerSecret, String tenantDomain) throws org.wso2.carbon.identity.application.common.IdentityApplicationManagementException
      Create portal SaaS application.
      Parameters:
      appName - Application name.
      appOwner - Application owner.
      appDescription - Application description.
      consumerKey - Consumer key.
      consumerSecret - Consumer secret.
      Throws:
      org.wso2.carbon.identity.application.common.IdentityApplicationManagementException - IdentityApplicationManagementException.
    • createApplication

      public static void createApplication(String appName, String appOwner, String appDescription, String consumerKey, String consumerSecret, String tenantDomain, String portalPath) throws org.wso2.carbon.identity.application.common.IdentityApplicationManagementException
      Create portal SaaS application.
      Parameters:
      appName - Application name.
      appOwner - Application owner.
      appDescription - Application description.
      consumerKey - Consumer key.
      consumerSecret - Consumer secret.
      portalPath - Portal path.
      Throws:
      org.wso2.carbon.identity.application.common.IdentityApplicationManagementException - IdentityApplicationManagementException.
    • createApplication

      public static void createApplication(String appName, String appOwner, String appDescription, String consumerKey, String consumerSecret, String tenantDomain, int tenantId, String portalPath) throws org.wso2.carbon.identity.application.common.IdentityApplicationManagementException
      Create portal SaaS application.
      Parameters:
      appName - Application name.
      appOwner - Application owner.
      appDescription - Application description.
      consumerKey - Consumer key.
      consumerSecret - Consumer secret.
      portalPath - Portal path.
      Throws:
      org.wso2.carbon.identity.application.common.IdentityApplicationManagementException - IdentityApplicationManagementException.
    • initiatePortals

      public static void initiatePortals(String tenantDomain, int tenantId) throws org.wso2.carbon.identity.application.common.IdentityApplicationManagementException, org.wso2.carbon.identity.oauth.IdentityOAuthAdminException, org.wso2.carbon.user.core.UserStoreException
      Initiate portals.
      Parameters:
      tenantDomain - tenant domain.
      tenantId - tenant id.
      Throws:
      org.wso2.carbon.identity.application.common.IdentityApplicationManagementException - IdentityApplicationManagementException.
      org.wso2.carbon.identity.oauth.IdentityOAuthAdminException - IdentityOAuthAdminException.
      org.wso2.carbon.user.core.UserStoreException - UserStoreException.
    • initiatePortals

      public static void initiatePortals(org.wso2.carbon.stratos.common.beans.TenantInfoBean tenantInfoBean) throws org.wso2.carbon.identity.application.common.IdentityApplicationManagementException, org.wso2.carbon.identity.oauth.IdentityOAuthAdminException
      Initiate portals.
      Parameters:
      tenantInfoBean - tenant info bean.
      Throws:
      org.wso2.carbon.identity.application.common.IdentityApplicationManagementException - IdentityApplicationManagementException.
      org.wso2.carbon.identity.oauth.IdentityOAuthAdminException - IdentityOAuthAdminException.
    • getOAuthInboundAuthenticationRequestConfig

      public static org.wso2.carbon.identity.application.common.model.InboundAuthenticationRequestConfig getOAuthInboundAuthenticationRequestConfig(org.wso2.carbon.identity.application.common.model.ServiceProvider application)
      Get OAuth InboundAuthenticationRequestConfig of the application.
      Parameters:
      application - application.
      Returns:
      OAuth InboundAuthenticationRequestConfig if exists.
    • resolveClientID

      public static String resolveClientID(String consumerKey, String tenantDomain)
      Resolve tenant qualified client ID.
      Parameters:
      consumerKey - consumer key.
      tenantDomain - tenant domain.
      Returns:
      client ID.