org.apache.camel.converter.crypto
Class DefaultPGPPassphraseAccessor
java.lang.Object
org.apache.camel.converter.crypto.DefaultPGPPassphraseAccessor
- All Implemented Interfaces:
- PGPPassphraseAccessor
public class DefaultPGPPassphraseAccessor
- extends Object
- implements PGPPassphraseAccessor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultPGPPassphraseAccessor
public DefaultPGPPassphraseAccessor(Map<String,String> userId2Passphrase)
getPassphrase
public String getPassphrase(String userId)
- Description copied from interface:
PGPPassphraseAccessor
- Returns the passphrase for a user Id
- Specified by:
getPassphrase
in interface PGPPassphraseAccessor
- Parameters:
userId
- user Id, can be null
- Returns:
- the passphrase for the user Id, or
null
if the
passphrase cannot be found
Apache Camel