Code example for InvalidKeySpecException

Methods: printStackTrace

0
var3.printStackTrace();
        } 
        catch (InvalidKeySpecException var4)
        { 
            var4.printStackTrace();
        } 
 
        System.err.println("Public key reconstitute failed!");
        return null; 
    } 
 
    /** 
     * Decrypt shared secret AES key using RSA private key 
     */ 
    public static SecretKey decryptSharedKey(PrivateKey par0PrivateKey, byte[] par1ArrayOfByte)
    { 
        return new SecretKeySpec(decryptData(par0PrivateKey, par1ArrayOfByte), "AES");
    } 
 
    /**