Class DefaultKeySelector
java.lang.Object
javax.xml.crypto.KeySelector
org.apache.camel.component.xmlsecurity.api.DefaultKeySelector
- All Implemented Interfaces:
org.apache.camel.CamelContextAware,org.apache.camel.spi.HasCamelContext
- Direct Known Subclasses:
DefaultKeyAccessor
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.camel.CamelContextselect(KeyInfo keyInfo, KeySelector.Purpose purpose, AlgorithmMethod method, XMLCryptoContext context) voidvoidsetCamelContext(org.apache.camel.CamelContext context) voidsetKeyStore(KeyStore keyStore) voidsetKeyStoreParameters(org.apache.camel.support.jsse.KeyStoreParameters parameters) voidsetPassword(char[] password) voidsetPassword(String password) Methods inherited from class javax.xml.crypto.KeySelector
singletonKeySelector
-
Constructor Details
-
DefaultKeySelector
public DefaultKeySelector()
-
-
Method Details
-
setKeyStore
-
setAlias
-
setPassword
-
setPassword
public void setPassword(char[] password) -
setKeyStoreParameters
public void setKeyStoreParameters(org.apache.camel.support.jsse.KeyStoreParameters parameters) throws GeneralSecurityException, IOException - Throws:
GeneralSecurityExceptionIOException
-
select
public KeySelectorResult select(KeyInfo keyInfo, KeySelector.Purpose purpose, AlgorithmMethod method, XMLCryptoContext context) throws KeySelectorException - Specified by:
selectin classKeySelector- Throws:
KeySelectorException
-
getCamelContext
public org.apache.camel.CamelContext getCamelContext()- Specified by:
getCamelContextin interfaceorg.apache.camel.spi.HasCamelContext
-
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext context) - Specified by:
setCamelContextin interfaceorg.apache.camel.CamelContextAware
-