org.apache.shiro.mgt.SessionsSecurityManager Java Examples
The following examples show how to use
org.apache.shiro.mgt.SessionsSecurityManager.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SSOServiceImpl.java From nano-framework with Apache License 2.0 | 5 votes |
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; }
Example #2
Source File: WebSocketServerPipelineFactory.java From usergrid with Apache License 2.0 | 5 votes |
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; }
Example #3
Source File: WebSocketChannelHandler.java From usergrid with Apache License 2.0 | 5 votes |
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(); } }
Example #4
Source File: MongoChannelHandler.java From usergrid with Apache License 2.0 | 5 votes |
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(); } }
Example #5
Source File: MongoServerPipelineFactory.java From usergrid with Apache License 2.0 | 5 votes |
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; }
Example #6
Source File: WebSocketChannelHandler.java From usergrid with Apache License 2.0 | 4 votes |
public SessionsSecurityManager getSecurityManager() { return securityManager; }
Example #7
Source File: MongoChannelHandler.java From usergrid with Apache License 2.0 | 4 votes |
public SessionsSecurityManager getSecurityManager() { return securityManager; }