Class FipsOutputEncryptor<T extends Parameters>

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

    public abstract class FipsOutputEncryptor<T extends Parameters>
    extends java.lang.Object
    implements OutputEncryptor<T>
    Base class for the approved mode OutputEncryptor 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.
      • getEncryptingStream

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