class CryptographicHelper {

    public void deleteKey(String keyAlias) {
        if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {

            legacyCryptography.deleteKey(keyAlias);
        } else {
            mCryptography.deleteKey(keyAlias);
        }
    }

}