class CryptographicHelper {

    public void generateKey(String keyAlias) {

        if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {

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

    }

}