public class DefaultPGPPassphraseAccessor extends Object implements PGPPassphraseAccessor
Constructor and Description |
---|
DefaultPGPPassphraseAccessor(Map<String,String> userId2Passphrase) |
Modifier and Type | Method and Description |
---|---|
String |
getPassphrase(String userId)
Returns the passphrase for a user Id
|
public String getPassphrase(String userId)
PGPPassphraseAccessor
getPassphrase
in interface PGPPassphraseAccessor
userId
- user Id, can be null
null
if the
passphrase cannot be foundCopyright © 2007–2016 The Apache Software Foundation. All rights reserved.