Class UnprotectedKeysProtector

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.bouncycastle.openpgp.operator.PBESecretKeyDecryptor getDecryptor​(java.lang.Long keyId)
      Return a decryptor for the key of id keyId.
      org.bouncycastle.openpgp.operator.PBESecretKeyEncryptor getEncryptor​(java.lang.Long keyId)
      Return an encryptor for the key of id keyId.
      boolean hasPassphraseFor​(java.lang.Long keyId)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UnprotectedKeysProtector

        public UnprotectedKeysProtector()
    • Method Detail

      • getDecryptor

        @Nullable
        public org.bouncycastle.openpgp.operator.PBESecretKeyDecryptor getDecryptor​(java.lang.Long keyId)
        Description copied from interface: SecretKeyRingProtector
        Return a decryptor for the key of id keyId. This method returns null if the key is unprotected.
        Specified by:
        getDecryptor in interface SecretKeyRingProtector
        Parameters:
        keyId - id of the key
        Returns:
        decryptor for the key
      • getEncryptor

        @Nullable
        public org.bouncycastle.openpgp.operator.PBESecretKeyEncryptor getEncryptor​(java.lang.Long keyId)
        Description copied from interface: SecretKeyRingProtector
        Return an encryptor for the key of id keyId. This method returns null if the key is unprotected.
        Specified by:
        getEncryptor in interface SecretKeyRingProtector
        Parameters:
        keyId - id of the key
        Returns:
        encryptor for the key