public class OAuthConfigurationManager extends Object
<authenticator class="org.wso2.carbon.andes.authentication.andes.OAuth2BasedMQTTAuthenticator">
<property name="hostURL">https://localhost:9443/services/OAuth2TokenValidationService</property>
<property name="username">admin</property>
<property name="password">admin</property>
<property name="scopes">device_scope</property>
<property name="maxConnectionsPerHost">10</property>
<property name="maxTotalConnections">150</property>
</authenticator>
Modifier and Type | Method and Description |
---|---|
URL |
getHostUrl() |
static OAuthConfigurationManager |
getInstance() |
org.wso2.andes.configuration.modules.JKSStore |
getJksKeyStore() |
int |
getMaximumHttpConnectionPerHost() |
int |
getMaximumTotalHttpConnection() |
String |
getPassword() |
String |
getUsername() |
void |
initConfig()
Initialize the configuration properties that required for OAuth based authentication.
|
public static OAuthConfigurationManager getInstance()
public void initConfig() throws org.wso2.andes.kernel.AndesException
org.wso2.andes.kernel.AndesException
- Thrown when an issue occurs config initializationpublic URL getHostUrl()
public String getUsername()
public String getPassword()
public org.wso2.andes.configuration.modules.JKSStore getJksKeyStore()
public int getMaximumTotalHttpConnection()
public int getMaximumHttpConnectionPerHost()
Copyright © 2017 WSO2. All rights reserved.