public static void closeGuardClose(Object guardObj) {
        CloseGuard guard = (CloseGuard) guardObj;
        guard.close();
    }
Creates a platform version of {@code GCMParameterSpec}.
android/src/main/java/org/conscrypt/Platform.java