org.apache.camel.component.crypto
Class DigitalSignatureEndpoint

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.DefaultEndpoint
          extended by org.apache.camel.component.crypto.DigitalSignatureEndpoint
All Implemented Interfaces:
CamelContextAware, Endpoint, IsSingleton, Service, ShutdownableService, HasId

public class DigitalSignatureEndpoint
extends DefaultEndpoint

DigitalSignatureEndpoint


Constructor Summary
DigitalSignatureEndpoint(String uri, DigitalSignatureComponent component, DigitalSignatureConfiguration configuration)
           
 
Method Summary
 Consumer createConsumer(Processor processor)
          Creates a new Event Driven Consumer which consumes messages from the endpoint using the given processor
 Producer createProducer()
          Creates a new producer which is used send messages into the endpoint
 String getAlgorithm()
           
 String getAlias()
           
 Integer getBuffersize()
           
 Certificate getCertificate()
           
 boolean getClearHeaders()
           
 DigitalSignatureConfiguration getConfiguration()
           
 KeyStore getKeystore()
           
 Object getManagedObject(DigitalSignatureEndpoint endpoint)
           
 char[] getPassword()
           
 PrivateKey getPrivateKey()
           
 String getProvider()
           
 PublicKey getPublicKey()
           
 SecureRandom getSecureRandom()
           
 String getSignatureHeader()
           
 boolean isSingleton()
          Whether this class supports being singleton or not.
 void setAlgorithm(String algorithm)
           
 void setAlias(String alias)
           
 void setBuffersize(Integer buffersize)
           
 void setClearHeaders(boolean clearHeaders)
           
 void setConfiguration(DigitalSignatureConfiguration configuration)
           
 void setKeyPassword(char[] keyPassword)
           
 void setKeystore(KeyStore keystore)
           
 void setPrivateKey(PrivateKey privateKey)
           
 void setProvider(String provider)
           
 void setPublicKey(PublicKey publicKey)
           
 void setPublicKey(String publicKeyName)
           
 void setSecureRandom(SecureRandom secureRandom)
           
 void setSignatureHeader(String signatureHeaderName)
           
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
configureProperties, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, getId, hashCode, isLenientProperties, isSynchronous, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, toString
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, start, stop, suspend
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Constructor Detail

DigitalSignatureEndpoint

public DigitalSignatureEndpoint(String uri,
                                DigitalSignatureComponent component,
                                DigitalSignatureConfiguration configuration)
Method Detail

createProducer

public Producer createProducer()
                        throws Exception
Description copied from interface: Endpoint
Creates a new producer which is used send messages into the endpoint

Returns:
a newly created producer
Throws:
Exception - can be thrown

createConsumer

public Consumer createConsumer(Processor processor)
                        throws Exception
Description copied from interface: Endpoint
Creates a new Event Driven Consumer which consumes messages from the endpoint using the given processor

Parameters:
processor - the given processor
Returns:
a newly created consumer
Throws:
Exception - can be thrown

isSingleton

public boolean isSingleton()
Description copied from interface: IsSingleton
Whether this class supports being singleton or not.

Returns:
true to be a single shared instance, false to create new instances.

getManagedObject

public Object getManagedObject(DigitalSignatureEndpoint endpoint)

setConfiguration

public void setConfiguration(DigitalSignatureConfiguration configuration)

getConfiguration

public DigitalSignatureConfiguration getConfiguration()

getPublicKey

public PublicKey getPublicKey()
                       throws Exception
Throws:
Exception

setPublicKey

public void setPublicKey(PublicKey publicKey)

setPublicKey

public void setPublicKey(String publicKeyName)

getCertificate

public Certificate getCertificate()
                           throws Exception
Throws:
Exception

getPrivateKey

public PrivateKey getPrivateKey()
                         throws Exception
Throws:
Exception

setPrivateKey

public void setPrivateKey(PrivateKey privateKey)

getKeystore

public KeyStore getKeystore()

setKeystore

public void setKeystore(KeyStore keystore)

getPassword

public char[] getPassword()

setKeyPassword

public void setKeyPassword(char[] keyPassword)

getSecureRandom

public SecureRandom getSecureRandom()

setSecureRandom

public void setSecureRandom(SecureRandom secureRandom)

getAlgorithm

public String getAlgorithm()

setAlgorithm

public void setAlgorithm(String algorithm)

getBuffersize

public Integer getBuffersize()

setBuffersize

public void setBuffersize(Integer buffersize)

getProvider

public String getProvider()

setProvider

public void setProvider(String provider)

getSignatureHeader

public String getSignatureHeader()

setSignatureHeader

public void setSignatureHeader(String signatureHeaderName)

getAlias

public String getAlias()

setAlias

public void setAlias(String alias)

getClearHeaders

public boolean getClearHeaders()

setClearHeaders

public void setClearHeaders(boolean clearHeaders)


Apache CAMEL