Tabnine Logo
SessionsSecurityManager.getSessionManager
Code IndexAdd Tabnine to your IDE (free)

How to use
getSessionManager
method
in
org.apache.shiro.mgt.SessionsSecurityManager

Best Java code snippets using org.apache.shiro.mgt.SessionsSecurityManager.getSessionManager (Showing top 5 results out of 315)

origin: apache/shiro

  public void destroy() {
    LifecycleUtils.destroy(getSessionManager());
    this.sessionManager = null;
    super.destroy();
  }
}
origin: killbill/killbill

  private JDBCSessionDao getJDBCSessionDao(final Subject subject) {
    if (subject instanceof DelegatingSubject) {
      final DelegatingSubject delegatingSubject = (DelegatingSubject) subject;
      if (delegatingSubject.getSecurityManager() instanceof SessionsSecurityManager) {
        final SessionsSecurityManager securityManager = (SessionsSecurityManager) delegatingSubject.getSecurityManager();
        if (securityManager.getSessionManager() instanceof DefaultSessionManager) {
          final DefaultSessionManager sessionManager = (DefaultSessionManager) securityManager.getSessionManager();
          if (sessionManager.getSessionDAO() instanceof JDBCSessionDao) {
            return (JDBCSessionDao) sessionManager.getSessionDAO();
          }
        }
      }
    }

    return null;
  }
}
origin: org.apache.shiro/shiro-core

  public void destroy() {
    LifecycleUtils.destroy(getSessionManager());
    this.sessionManager = null;
    super.destroy();
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.shiro

  public void destroy() {
    LifecycleUtils.destroy(getSessionManager());
    this.sessionManager = null;
    super.destroy();
  }
}
origin: org.kill-bill.billing/killbill-util

  private JDBCSessionDao getJDBCSessionDao(final Subject subject) {
    if (subject instanceof DelegatingSubject) {
      final DelegatingSubject delegatingSubject = (DelegatingSubject) subject;
      if (delegatingSubject.getSecurityManager() instanceof SessionsSecurityManager) {
        final SessionsSecurityManager securityManager = (SessionsSecurityManager) delegatingSubject.getSecurityManager();
        if (securityManager.getSessionManager() instanceof DefaultSessionManager) {
          final DefaultSessionManager sessionManager = (DefaultSessionManager) securityManager.getSessionManager();
          if (sessionManager.getSessionDAO() instanceof JDBCSessionDao) {
            return (JDBCSessionDao) sessionManager.getSessionDAO();
          }
        }
      }
    }

    return null;
  }
}
org.apache.shiro.mgtSessionsSecurityManagergetSessionManager

Javadoc

Returns this security manager's internal delegate SessionManager.

Popular methods of SessionsSecurityManager

  • afterSessionManagerSet
  • applyCacheManagerToSessionManager
    Ensures the internal delegate SessionManager is injected with the newly set #setCacheManager so it m
  • getCacheManager
  • applyEventBusToSessionManager
    Ensures the internal delegate SessionManager is injected with the newly set #setEventBus so it may u
  • getEventBus
  • setAuthenticator
  • setAuthorizer
  • setCacheManager
  • setEventBus
  • setRealms
  • setSessionManager
    Sets the underlying delegate SessionManager instance that will be used to support this implementatio
  • setSessionManager

Popular in Java

  • Finding current android device location
  • onCreateOptionsMenu (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setRequestProperty (URLConnection)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JComboBox (javax.swing)
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now