org.apache.shiro.authz.Authorizer Java Examples
The following examples show how to use
org.apache.shiro.authz.Authorizer.
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: WebSecurityModule.java From nexus-public with Eclipse Public License 1.0 | 6 votes |
@Override protected void configureShiroWeb() { bindRealm().to(EmptyRealm.class); // not used in practice, just here to keep Shiro module happy bindSingleton(SessionFactory.class, NexusSessionFactory.class); bindSingleton(SessionStorageEvaluator.class, NexusSessionStorageEvaluator.class); bindSingleton(SubjectDAO.class, NexusSubjectDAO.class); // configure our preferred security components bindSingleton(SessionDAO.class, NexusSessionDAO.class); bindSingleton(Authenticator.class, FirstSuccessfulModularRealmAuthenticator.class); bindSingleton(Authorizer.class, ExceptionCatchingModularRealmAuthorizer.class); bindSingleton(FilterChainManager.class, DynamicFilterChainManager.class); // path matching resolver has several constructors so we need to point Guice to the appropriate one bind(FilterChainResolver.class).toConstructor(ctor(PathMatchingFilterChainResolver.class)).asEagerSingleton(); // bindings used by external modules expose(FilterChainResolver.class); expose(FilterChainManager.class); }