Java源码示例:org.apache.shiro.mgt.SessionsSecurityManager

示例1
protected SessionDAO getSessionDAO() {
    final SecurityManager securityManager = SecurityUtils.getSecurityManager();
    if(securityManager instanceof SessionsSecurityManager) {
        final SessionManager sessionManager = ((SessionsSecurityManager) securityManager).getSessionManager();
        if(sessionManager instanceof DefaultSessionManager) {
            return ((DefaultSessionManager) sessionManager).getSessionDAO();
        }
    }
    
    return null;
}
 
示例2
public WebSocketServerPipelineFactory( EntityManagerFactory emf, ServiceManagerFactory smf,
                                       ManagementService management, SessionsSecurityManager securityManager,
                                       ExecutionHandler executionHandler, boolean ssl ) {
    this.emf = emf;
    this.smf = smf;
    this.management = management;
    this.securityManager = securityManager;
    this.executionHandler = executionHandler;
    this.ssl = ssl;
}
 
示例3
public WebSocketChannelHandler( EntityManagerFactory emf, ServiceManagerFactory smf, ManagementService management,
                                SessionsSecurityManager securityManager, boolean ssl ) {
    super();

    this.emf = emf;
    this.smf = smf;
    this.management = management;
    this.securityManager = securityManager;
    this.ssl = ssl;

    if ( securityManager != null ) {
        subject = new Subject.Builder( securityManager ).buildSubject();
    }
}
 
示例4
public MongoChannelHandler( EntityManagerFactory emf, ServiceManagerFactory smf, ManagementService management,
                            SessionsSecurityManager securityManager ) {
    super();

    logger.info( "Starting new client connection..." );
    this.emf = emf;
    this.smf = smf;
    this.management = management;
    this.securityManager = securityManager;

    if ( securityManager != null ) {
        subject = new Subject.Builder( securityManager ).buildSubject();
    }
}
 
示例5
public MongoServerPipelineFactory( EntityManagerFactory emf, ServiceManagerFactory smf,
                                   ManagementService management, SessionsSecurityManager securityManager,
                                   ExecutionHandler executionHandler ) {
    this.emf = emf;
    this.smf = smf;
    this.management = management;
    this.securityManager = securityManager;
    this.executionHandler = executionHandler;
}
 
示例6
public SessionsSecurityManager getSecurityManager() {
    return securityManager;
}
 
示例7
public SessionsSecurityManager getSecurityManager() {
    return securityManager;
}