Class DefaultPGPPassphraseAccessor
- java.lang.Object
-
- org.apache.camel.converter.crypto.DefaultPGPPassphraseAccessor
-
- All Implemented Interfaces:
PGPPassphraseAccessor
public class DefaultPGPPassphraseAccessor extends Object implements PGPPassphraseAccessor
-
-
Constructor Summary
Constructors Constructor Description DefaultPGPPassphraseAccessor(Map<String,String> userId2Passphrase)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getPassphrase(String userId)
Returns the passphrase for a user Id
-
-
-
Method Detail
-
getPassphrase
public String getPassphrase(String userId)
Description copied from interface:PGPPassphraseAccessor
Returns the passphrase for a user Id- Specified by:
getPassphrase
in interfacePGPPassphraseAccessor
- Parameters:
userId
- user Id, can benull
- Returns:
- the passphrase for the user Id, or
null
if the passphrase cannot be found
-
-