Class AuthenticationServiceDataHolder
java.lang.Object
org.wso2.carbon.andes.authentication.internal.AuthenticationServiceDataHolder
This singleton class holds common properties used inside the authentication bundle.
-
Method Summary
Modifier and TypeMethodDescriptionGet stored access keyorg.wso2.carbon.user.core.service.RealmServiceGet stored RealmService instanceorg.wso2.carbon.registry.core.service.RegistryServiceGet stored RegistryService instancevoidsetAccessKey(String accessKey) Sets access key generated at the time of bundle activationvoidsetRealmService(org.wso2.carbon.user.core.service.RealmService realmService) Set RealmService instancevoidsetRegistryService(org.wso2.carbon.registry.core.service.RegistryService registryService) Sets RegistryService instance received before the bundle started up
-
Method Details
-
getInstance
-
setRegistryService
public void setRegistryService(org.wso2.carbon.registry.core.service.RegistryService registryService) Sets RegistryService instance received before the bundle started up- Parameters:
registryService- RegistryService instance
-
getRegistryService
public org.wso2.carbon.registry.core.service.RegistryService getRegistryService()Get stored RegistryService instance- Returns:
- RegistryService instance
-
setAccessKey
Sets access key generated at the time of bundle activation- Parameters:
accessKey- Generated access key (a UUID)
-
getAccessKey
Get stored access key- Returns:
- Access key value
-
getRealmService
public org.wso2.carbon.user.core.service.RealmService getRealmService()Get stored RealmService instance- Returns:
- RealmService instance
-
setRealmService
public void setRealmService(org.wso2.carbon.user.core.service.RealmService realmService) Set RealmService instance- Parameters:
realmService- RealmService instance
-