Remove the declaration of thrown exception 53/94253/1
authoranushadasari <danush10@in.ibm.com>
Sun, 25 Aug 2019 15:48:38 +0000 (21:18 +0530)
committeranushadasari <danush10@in.ibm.com>
Sun, 25 Aug 2019 15:51:21 +0000 (21:21 +0530)
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>
cadi/core/src/main/java/org/onap/aaf/cadi/AES.java

index c4f3d50..4ec5168 100644 (file)
@@ -63,7 +63,7 @@ public class AES implements Encryption {
         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);
     }