Interface ParametersWithIV<T extends Parameters>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      byte[] getIV()
      Return the initialization vector associated with this parameter set.
      T withIV​(byte[] iv)
      Create a new parameter set with a different IV.
      T withIV​(java.security.SecureRandom random)
      Create a new parameter set with a different IV based on the output of the passed in random.
    • Method Detail

      • getIV

        byte[] getIV()
        Return the initialization vector associated with this parameter set.
        Returns:
        the IV for these parameters.
      • withIV

        T withIV​(byte[] iv)
        Create a new parameter set with a different IV.
        Parameters:
        iv - the IV to use.
        Returns:
        a copy of the current parameter set with the new IV.
      • withIV

        T withIV​(java.security.SecureRandom random)
        Create a new parameter set with a different IV based on the output of the passed in random.
        Parameters:
        random - the SecureRandom to use as the source of IV data.
        Returns:
        a copy of the current parameter set with the new IV.