Remove the declaration of thrown exception 'java.io.IOException','java.security.NoSuchAlgorithmException', 'javax.crypto.NoSuchPaddingException', as it cannot be thrown from constructor's body
Change-Id: I0af468d8112fa8ecb3c7626fbbdedf2d375f7601
Issue-ID: AAF-956
Signed-off-by: anushadasari <danush10@in.ibm.com>
return kgen.generateKey();
}
- public AES(byte[] aeskey, int offset, int len) throws IOException, NoSuchAlgorithmException, NoSuchPaddingException {
+ public AES(byte[] aeskey, int offset, int len){
aeskeySpec = new SecretKeySpec(aeskey,offset,len,AES);
}