Class OAuthConfigurationManager
java.lang.Object
org.wso2.carbon.andes.authentication.andes.oauth.config.OAuthConfigurationManager
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 Summary
Modifier and TypeMethodDescriptionstatic OAuthConfigurationManagerorg.wso2.andes.configuration.modules.JKSStoreintintvoidInitialize the configuration properties that required for OAuth based authentication.
-
Method Details
-
getInstance
-
initConfig
public void initConfig() throws org.wso2.andes.kernel.AndesExceptionInitialize the configuration properties that required for OAuth based authentication.- Throws:
org.wso2.andes.kernel.AndesException
-
getHostUrl
- Returns:
- Oauth authentication service endpoint
-
getUsername
- Returns:
- username to connect with Oauth authentication service
-
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
-