Package io.lighty.aaa
Class AAALightyShiroProvider
- java.lang.Object
-
- io.lighty.aaa.AAALightyShiroProvider
-
public final class AAALightyShiroProvider extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()org.opendaylight.aaa.cert.api.ICertificateManagergetCertificateManager()Extract the certificate manager.org.opendaylight.mdsal.binding.api.DataBrokergetDataBroker()Extract the data broker.org.opendaylight.aaa.impl.password.service.DefaultPasswordHashServicegetDefaultPasswordHashService()static org.opendaylight.aaa.api.IIDMStoregetIdmStore()Get IDM data store.static AAALightyShiroProvidergetInstance()org.opendaylight.yang.gen.v1.urn.opendaylight.aaa.app.config.rev170619.ShiroConfigurationgetShiroConfiguration()Extract Shiro related configuration.org.opendaylight.aaa.shiro.web.env.ShiroWebEnvironmentLoaderListenergetShiroWebEnvironmentLoaderListener()org.opendaylight.aaa.shiro.tokenauthrealm.auth.TokenAuthenticatorsgetTokenAuthenticators()org.opendaylight.aaa.datastore.h2.H2TokenStoregetTokenStore()static CompletableFuture<AAALightyShiroProvider>newInstance(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.aaa.cert.api.ICertificateManager certificateManager, org.opendaylight.aaa.api.CredentialAuth<org.opendaylight.aaa.api.PasswordCredentials> credentialAuth, org.opendaylight.yang.gen.v1.urn.opendaylight.aaa.app.config.rev170619.ShiroConfiguration shiroConfiguration, String moonEndpointPath, org.opendaylight.yang.gen.v1.urn.opendaylight.aaa.app.config.rev170619.DatastoreConfig datastoreConfig, String dbUsername, String dbPassword, LightyServerBuilder server)static voidsetIdmStore(org.opendaylight.aaa.api.IIDMStore store)Set IDM data store, only used for test.
-
-
-
Method Detail
-
newInstance
public static CompletableFuture<AAALightyShiroProvider> newInstance(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.aaa.cert.api.ICertificateManager certificateManager, org.opendaylight.aaa.api.CredentialAuth<org.opendaylight.aaa.api.PasswordCredentials> credentialAuth, org.opendaylight.yang.gen.v1.urn.opendaylight.aaa.app.config.rev170619.ShiroConfiguration shiroConfiguration, String moonEndpointPath, org.opendaylight.yang.gen.v1.urn.opendaylight.aaa.app.config.rev170619.DatastoreConfig datastoreConfig, String dbUsername, String dbPassword, LightyServerBuilder server)
-
getInstance
public static AAALightyShiroProvider getInstance()
-
getDataBroker
public org.opendaylight.mdsal.binding.api.DataBroker getDataBroker()
Extract the data broker.- Returns:
- the data broker
-
getCertificateManager
public org.opendaylight.aaa.cert.api.ICertificateManager getCertificateManager()
Extract the certificate manager.- Returns:
- the certificate manager.
-
getShiroConfiguration
public org.opendaylight.yang.gen.v1.urn.opendaylight.aaa.app.config.rev170619.ShiroConfiguration getShiroConfiguration()
Extract Shiro related configuration.- Returns:
- Shiro related configuration.
-
getShiroWebEnvironmentLoaderListener
public org.opendaylight.aaa.shiro.web.env.ShiroWebEnvironmentLoaderListener getShiroWebEnvironmentLoaderListener()
-
getTokenAuthenticators
public org.opendaylight.aaa.shiro.tokenauthrealm.auth.TokenAuthenticators getTokenAuthenticators()
-
getTokenStore
public org.opendaylight.aaa.datastore.h2.H2TokenStore getTokenStore()
-
getDefaultPasswordHashService
public org.opendaylight.aaa.impl.password.service.DefaultPasswordHashService getDefaultPasswordHashService()
-
getIdmStore
public static org.opendaylight.aaa.api.IIDMStore getIdmStore()
Get IDM data store.- Returns:
- IIDMStore data store
-
setIdmStore
public static void setIdmStore(org.opendaylight.aaa.api.IIDMStore store)
Set IDM data store, only used for test.- Parameters:
store- data store
-
close
public void close()
-
-