Interface SecretKeyRingProtector

    • Method Summary

      All Methods Instance Methods Abstract 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.
    • Method Detail

      • getDecryptor

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

        @Nullable
        org.bouncycastle.openpgp.operator.PBESecretKeyEncryptor getEncryptor​(java.lang.Long keyId)
                                                                      throws org.bouncycastle.openpgp.PGPException
        Return an encryptor for the key of id keyId. This method returns null if the key is unprotected.
        Parameters:
        keyId - id of the key
        Returns:
        encryptor for the key
        Throws:
        org.bouncycastle.openpgp.PGPException - if the encryptor cannot be created for some reason