public class IvParameterSpec extends Object implements AlgorithmParameterSpec
| Constructor and Description |
|---|
IvParameterSpec(byte[] iv)
Creates a new
IvParameterSpec instance with the bytes from
the specified buffer iv used as initialization vector. |
IvParameterSpec(byte[] iv,
int offset,
int byteCount)
Creates a new
IvParameterSpec instance with byteCount
bytes from the specified buffer iv starting at
offset. |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getIV()
Returns a copy of the initialization vector data.
|
public IvParameterSpec(byte[] iv)
IvParameterSpec instance with the bytes from
the specified buffer iv used as initialization vector.iv - the buffer used as initialization vector.NullPointerException - if the specified buffer is null.public IvParameterSpec(byte[] iv,
int offset,
int byteCount)
IvParameterSpec instance with byteCount
bytes from the specified buffer iv starting at
offset.IllegalArgumentException - if the specified buffer is null or offset and
byteCount do not specify a valid chunk in the
specified buffer.ArrayIndexOutOfBoundsException - if offset or byteCount are negative.