|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.crypto.provider.AESKeySpec
public class AESKeySpec
This class specifies a AES key.
| Constructor Summary | |
|---|---|
AESKeySpec(byte[] key)
Uses the bytes in key as the key material for the
AES key. |
|
AESKeySpec(byte[] key,
int offset,
int len)
Uses the bytes in key, beginning at
offset inclusive, as the key material for the AES key. |
|
| Method Summary | |
|---|---|
byte[] |
getKey()
Returns the AES key material. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AESKeySpec(byte[] key)
throws InvalidKeyException
key as the key material for the
AES key.
The bytes that constitute the AES key are those between
key[0] and key[key.length - 1] inclusive.
key - the buffer with the AES key material.
InvalidKeyException - if the given key material is not 16, 24, or 32 bytes.
public AESKeySpec(byte[] key,
int offset,
int len)
throws InvalidKeyException
key, beginning at
offset inclusive, as the key material for the AES key.
The bytes that constitute the AES key are those between
key[offset] and key[offset+len-1] inclusive.
key - the buffer with the AES key material.offset - the offset in key, where the DES key
material starts.
InvalidKeyException - if the given key material, starting at
offset inclusive, is not 16, 24, or 32 bytes.| Method Detail |
|---|
public byte[] getKey()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||