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

java.lang.Object
  extended by org.apache.camel.component.shiro.security.ShiroSecurityTokenInjector
All Implemented Interfaces:
Processor

public class ShiroSecurityTokenInjector
extends Object
implements Processor


Constructor Summary
ShiroSecurityTokenInjector()
           
ShiroSecurityTokenInjector(ShiroSecurityToken securityToken, byte[] passPhrase)
           
ShiroSecurityTokenInjector(ShiroSecurityToken securityToken, byte[] passPhrase, org.apache.shiro.crypto.CipherService cipherService)
           
 
Method Summary
 org.apache.shiro.util.ByteSource encrypt()
           
 org.apache.shiro.crypto.CipherService getCipherService()
           
 byte[] getPassPhrase()
           
 ShiroSecurityToken getSecurityToken()
           
 void process(Exchange exchange)
          Processes the message exchange
 void setCipherService(org.apache.shiro.crypto.CipherService cipherService)
           
 void setPassPhrase(byte[] passPhrase)
           
 void setSecurityToken(ShiroSecurityToken securityToken)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShiroSecurityTokenInjector

public ShiroSecurityTokenInjector()

ShiroSecurityTokenInjector

public ShiroSecurityTokenInjector(ShiroSecurityToken securityToken,
                                  byte[] passPhrase)

ShiroSecurityTokenInjector

public ShiroSecurityTokenInjector(ShiroSecurityToken securityToken,
                                  byte[] passPhrase,
                                  org.apache.shiro.crypto.CipherService cipherService)
Method Detail

encrypt

public org.apache.shiro.util.ByteSource encrypt()
                                         throws Exception
Throws:
Exception

process

public void process(Exchange exchange)
             throws Exception
Description copied from interface: Processor
Processes the message exchange

Specified by:
process in interface Processor
Parameters:
exchange - the message exchange
Throws:
Exception - if an internal processing error has occurred.

getPassPhrase

public byte[] getPassPhrase()

setPassPhrase

public void setPassPhrase(byte[] passPhrase)

setSecurityToken

public void setSecurityToken(ShiroSecurityToken securityToken)

getSecurityToken

public ShiroSecurityToken getSecurityToken()

getCipherService

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

setCipherService

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


Apache CAMEL