org.apache.camel.component.xmlsecurity.api
Class DefaultKeySelector

java.lang.Object
  extended by javax.xml.crypto.KeySelector
      extended by org.apache.camel.component.xmlsecurity.api.DefaultKeySelector
Direct Known Subclasses:
DefaultKeyAccessor

public class DefaultKeySelector
extends KeySelector

Default implementation for the key selector. The key is read from a key-store for a given alias. Depending on the purpose a private or public key is returned.


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.xml.crypto.KeySelector
KeySelector.Purpose
 
Constructor Summary
DefaultKeySelector()
           
 
Method Summary
 KeySelectorResult select(KeyInfo keyInfo, KeySelector.Purpose purpose, AlgorithmMethod method, XMLCryptoContext context)
           
 void setAlias(String alias)
           
 void setKeyStore(KeyStore keyStore)
           
 void setPassword(char[] password)
           
 void setPassword(String password)
           
 
Methods inherited from class javax.xml.crypto.KeySelector
singletonKeySelector
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultKeySelector

public DefaultKeySelector()
Method Detail

setKeyStore

public void setKeyStore(KeyStore keyStore)

setAlias

public void setAlias(String alias)

setPassword

public void setPassword(String password)

setPassword

public void setPassword(char[] password)

select

public KeySelectorResult select(KeyInfo keyInfo,
                                KeySelector.Purpose purpose,
                                AlgorithmMethod method,
                                XMLCryptoContext context)
                         throws KeySelectorException
Specified by:
select in class KeySelector
Throws:
KeySelectorException


Apache Camel