Package io.lighty.aaa

Class AAALightyShiroProvider


  • public final class AAALightyShiroProvider
    extends Object
    • 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)
      • 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.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()