Interface InputDecryptor

  • All Known Subinterfaces:
    InputAEADDecryptor

    public interface InputDecryptor
    General interface for an operator that is able to produce an InputStream that will decrypt a stream of encrypted data.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.bouncycastle.asn1.x509.AlgorithmIdentifier getAlgorithmIdentifier()
      Return the algorithm identifier describing the encryption algorithm and parameters this decryptor can process.
      java.io.InputStream getInputStream​(java.io.InputStream encIn)
      Wrap the passed in input stream encIn, returning an input stream that decrypts what it reads from encIn before returning it.
    • Method Detail

      • getAlgorithmIdentifier

        org.bouncycastle.asn1.x509.AlgorithmIdentifier getAlgorithmIdentifier()
        Return the algorithm identifier describing the encryption algorithm and parameters this decryptor can process.
        Returns:
        algorithm oid and parameters.
      • getInputStream

        java.io.InputStream getInputStream​(java.io.InputStream encIn)
        Wrap the passed in input stream encIn, returning an input stream that decrypts what it reads from encIn before returning it.
        Parameters:
        encIn - InputStream containing encrypted input.
        Returns:
        an decrypting InputStream