org.apache.camel.converter.crypto
Class DefaultPGPPassphraseAccessor

java.lang.Object
  extended by org.apache.camel.converter.crypto.DefaultPGPPassphraseAccessor
All Implemented Interfaces:
PGPPassphraseAccessor

public class DefaultPGPPassphraseAccessor
extends Object
implements PGPPassphraseAccessor


Constructor Summary
DefaultPGPPassphraseAccessor(Map<String,String> userId2Passphrase)
           
 
Method Summary
 String getPassphrase(String userId)
          Returns the passphrase for a user Id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPGPPassphraseAccessor

public DefaultPGPPassphraseAccessor(Map<String,String> userId2Passphrase)
Method Detail

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