From: anushadasari Date: Sun, 25 Aug 2019 15:48:38 +0000 (+0530) Subject: Remove the declaration of thrown exception X-Git-Tag: 2.1.17~156^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=aaf%2Fauthz.git;a=commitdiff_plain;h=021b394a49a39dbaf5265cec0d4ebae2a729813b Remove the declaration of thrown exception 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 --- diff --git a/cadi/core/src/main/java/org/onap/aaf/cadi/AES.java b/cadi/core/src/main/java/org/onap/aaf/cadi/AES.java index c4f3d504..4ec51682 100644 --- a/cadi/core/src/main/java/org/onap/aaf/cadi/AES.java +++ b/cadi/core/src/main/java/org/onap/aaf/cadi/AES.java @@ -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); }