Class OAuthConfigurationManager

java.lang.Object
org.wso2.carbon.andes.authentication.andes.oauth.config.OAuthConfigurationManager

public class OAuthConfigurationManager extends Object
This class acts as a access point for config parameters used within the oauth based mqtt authenticator. this configuration is read from broker.xml configuration:

https://localhost:9443/services/OAuth2TokenValidationService admin admin device_scope 10 150

  • Method Details

    • getInstance

      public static OAuthConfigurationManager getInstance()
    • initConfig

      public void initConfig() throws org.wso2.andes.kernel.AndesException
      Initialize the configuration properties that required for OAuth based authentication.
      Throws:
      org.wso2.andes.kernel.AndesException
    • getHostUrl

      public URL getHostUrl()
      Returns:
      Oauth authentication service endpoint
    • getUsername

      public String getUsername()
      Returns:
      username to connect with Oauth authentication service
    • getPassword

      public String getPassword()
      Returns:
      password to connect with Oauth authentication service
    • getJksKeyStore

      public org.wso2.andes.configuration.modules.JKSStore getJksKeyStore()
      Returns:
      Keystore used for ssl connection in CommonHTTP transport in axis
    • getMaximumTotalHttpConnection

      public int getMaximumTotalHttpConnection()
      Returns:
      maximumTotalHttpConnection used in a http connection manager
    • getMaximumHttpConnectionPerHost

      public int getMaximumHttpConnectionPerHost()
      Returns:
      maximumHttpConnectionPerHost used in a http connection manager