Package io.lighty.aaa
Class AAALightyShiroProvider
java.lang.Object
io.lighty.aaa.AAALightyShiroProvider
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()org.opendaylight.aaa.shiro.web.env.AAAWebEnvironmentorg.opendaylight.aaa.cert.api.ICertificateManagerExtract the certificate manager.org.opendaylight.mdsal.binding.api.DataBrokerExtract the data broker.org.opendaylight.aaa.impl.password.service.DefaultPasswordHashServicestatic org.opendaylight.aaa.api.IIDMStoreGet IDM data store.static AAALightyShiroProviderorg.opendaylight.yang.gen.v1.urn.opendaylight.aaa.app.config.rev170619.ShiroConfigurationExtract Shiro related configuration.org.opendaylight.aaa.tokenauthrealm.auth.TokenAuthenticatorsorg.opendaylight.aaa.datastore.h2.H2TokenStorenewInstance(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, AAAConfiguration aaaConfig, org.opendaylight.aaa.api.CredentialAuth<org.opendaylight.aaa.api.PasswordCredentials> credentialAuth, LightyServerBuilder server) static voidsetIdmStore(org.opendaylight.aaa.api.IIDMStore store) Set IDM data store, only used for test.
-
Method Details
-
newInstance
public static CompletableFuture<AAALightyShiroProvider> newInstance(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, AAAConfiguration aaaConfig, org.opendaylight.aaa.api.CredentialAuth<org.opendaylight.aaa.api.PasswordCredentials> credentialAuth, LightyServerBuilder server) -
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.
-
getAaaWebEnvironment
public org.opendaylight.aaa.shiro.web.env.AAAWebEnvironment getAaaWebEnvironment() -
getTokenAuthenticators
public org.opendaylight.aaa.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()
-