class CryptographicHelper {

    public Key getKey(String keyAlias) {
        if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {

            return legacyCryptography.getKey(keyAlias);
        } else {
            return mCryptography.getKey(keyAlias);
        }
    }

}