Extract security from agdroid

Duplicate catch blocks, you can use multi catch right?
```java
} catch (NoSuchAlgorithmException | CertificateException ex) {
            Log.e(TAG, ex.getMessage(), ex);
            throw new RuntimeException(ex);
```