org.apache.camel.component.xmlsecurity.api
Class DefaultKeySelector
java.lang.Object
javax.xml.crypto.KeySelector
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultKeySelector
public DefaultKeySelector()
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