org.apache.camel.component.shiro.security
Class ShiroSecurityPolicy

java.lang.Object
  extended by org.apache.camel.component.shiro.security.ShiroSecurityPolicy
All Implemented Interfaces:
AuthorizationPolicy, Policy

public class ShiroSecurityPolicy
extends Object
implements AuthorizationPolicy


Constructor Summary
ShiroSecurityPolicy()
           
ShiroSecurityPolicy(org.apache.shiro.config.Ini ini)
           
ShiroSecurityPolicy(org.apache.shiro.config.Ini ini, byte[] passPhrase)
           
ShiroSecurityPolicy(org.apache.shiro.config.Ini ini, byte[] passPhrase, boolean alwaysReauthenticate)
           
ShiroSecurityPolicy(org.apache.shiro.config.Ini ini, byte[] passPhrase, boolean alwaysReauthenticate, List<org.apache.shiro.authz.Permission> permissionsList)
           
ShiroSecurityPolicy(String iniResourcePath)
           
ShiroSecurityPolicy(String iniResourcePath, byte[] passPhrase)
           
ShiroSecurityPolicy(String iniResourcePath, byte[] passPhrase, boolean alwaysReauthenticate)
           
ShiroSecurityPolicy(String iniResourcePath, byte[] passPhrase, boolean alwaysReauthenticate, List<org.apache.shiro.authz.Permission> permissionsList)
           
 
Method Summary
 void beforeWrap(RouteContext routeContext, ProcessorDefinition<?> definition)
          Hook invoked before the wrap.
 org.apache.shiro.crypto.CipherService getCipherService()
           
 byte[] getPassPhrase()
           
 List<org.apache.shiro.authz.Permission> getPermissionsList()
           
 org.apache.shiro.mgt.SecurityManager getSecurityManager()
           
 boolean isAlwaysReauthenticate()
           
 void setAlwaysReauthenticate(boolean alwaysReauthenticate)
           
 void setCipherService(org.apache.shiro.crypto.CipherService cipherService)
           
 void setPassPhrase(byte[] passPhrase)
           
 void setPermissionsList(List<org.apache.shiro.authz.Permission> permissionsList)
           
 void setSecurityManager(org.apache.shiro.mgt.SecurityManager securityManager)
           
 Processor wrap(RouteContext routeContext, Processor processor)
          Wraps any applicable interceptors around the given processor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShiroSecurityPolicy

public ShiroSecurityPolicy()

ShiroSecurityPolicy

public ShiroSecurityPolicy(String iniResourcePath)

ShiroSecurityPolicy

public ShiroSecurityPolicy(org.apache.shiro.config.Ini ini)

ShiroSecurityPolicy

public ShiroSecurityPolicy(String iniResourcePath,
                           byte[] passPhrase)

ShiroSecurityPolicy

public ShiroSecurityPolicy(org.apache.shiro.config.Ini ini,
                           byte[] passPhrase)

ShiroSecurityPolicy

public ShiroSecurityPolicy(String iniResourcePath,
                           byte[] passPhrase,
                           boolean alwaysReauthenticate)

ShiroSecurityPolicy

public ShiroSecurityPolicy(org.apache.shiro.config.Ini ini,
                           byte[] passPhrase,
                           boolean alwaysReauthenticate)

ShiroSecurityPolicy

public ShiroSecurityPolicy(String iniResourcePath,
                           byte[] passPhrase,
                           boolean alwaysReauthenticate,
                           List<org.apache.shiro.authz.Permission> permissionsList)

ShiroSecurityPolicy

public ShiroSecurityPolicy(org.apache.shiro.config.Ini ini,
                           byte[] passPhrase,
                           boolean alwaysReauthenticate,
                           List<org.apache.shiro.authz.Permission> permissionsList)
Method Detail

beforeWrap

public void beforeWrap(RouteContext routeContext,
                       ProcessorDefinition<?> definition)
Description copied from interface: Policy
Hook invoked before the wrap.

This allows you to do any custom logic before the processor is wrapped. For example to manipulate the definiton

Specified by:
beforeWrap in interface Policy
Parameters:
routeContext - the route context
definition - the processor definition

wrap

public Processor wrap(RouteContext routeContext,
                      Processor processor)
Description copied from interface: Policy
Wraps any applicable interceptors around the given processor.

Specified by:
wrap in interface Policy
Parameters:
routeContext - the route context
processor - the processor to be intercepted
Returns:
either the original processor or a processor wrapped in one or more processors

getCipherService

public org.apache.shiro.crypto.CipherService getCipherService()

setCipherService

public void setCipherService(org.apache.shiro.crypto.CipherService cipherService)

getSecurityManager

public org.apache.shiro.mgt.SecurityManager getSecurityManager()

setSecurityManager

public void setSecurityManager(org.apache.shiro.mgt.SecurityManager securityManager)

getPassPhrase

public byte[] getPassPhrase()

setPassPhrase

public void setPassPhrase(byte[] passPhrase)

getPermissionsList

public List<org.apache.shiro.authz.Permission> getPermissionsList()

setPermissionsList

public void setPermissionsList(List<org.apache.shiro.authz.Permission> permissionsList)

isAlwaysReauthenticate

public boolean isAlwaysReauthenticate()

setAlwaysReauthenticate

public void setAlwaysReauthenticate(boolean alwaysReauthenticate)


Apache CAMEL