Class FipsOutputDecryptor<T extends Parameters>

  • Type Parameters:
    T - the parameters type associated with the final implementation of this decryptor.
    All Implemented Interfaces:
    OutputCipher<T>, OutputDecryptor<T>
    Direct Known Subclasses:
    FipsOutputAEADDecryptor

    public abstract class FipsOutputDecryptor<T extends Parameters>
    extends java.lang.Object
    implements OutputDecryptor<T>
    Base class for the approved mode OutputDecryptor implementations.
    • Method Detail

      • getParameters

        public abstract T getParameters()
        Description copied from interface: OutputCipher
        Return the parameters for this cipher.
        Specified by:
        getParameters in interface OutputCipher<T extends Parameters>
        Returns:
        the cipher's parameters.
      • getDecryptingStream

        public abstract CipherOutputStream getDecryptingStream​(java.io.OutputStream out)
        Description copied from interface: OutputDecryptor
        Return a stream which will decrypt it's input writing the results to out.
        Specified by:
        getDecryptingStream in interface OutputDecryptor<T extends Parameters>
        Parameters:
        out - the output stream to collect the decrypted data in.
        Returns:
        a stream for writing the encrypted data.