public CodecCipher setInit(Key key) throws IllegalArgumentException
    {
        return setInit(key, null, null, null);
    }
public CodecCipher setInit ( Key key ) throws IllegalArgumentException { return setInit ( key , null , null , null ) ; }
Set cipher initialization parameters.

<p>
If this method is used to set initialization parameters,
{@link Cipher#init(int, Key) Cipher.init(mode, (Key)key)}
is called later from within {@code encrypt}/{@code decrypt} methods.
</p>

@param key

@return
{@code this} object.

@throws IllegalArgumentException
{@code key} is {@code null}.