Class DefaultPGPPassphraseAccessor

    • 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